From: Kyle Tsang <6854874+kyletsang@users.noreply.github.com> Date: Thu, 4 Feb 2021 04:55:25 +0000 (-0800) Subject: Fix Popper preventOverflow boundary config (#32845) X-Git-Tag: v5.0.0-beta2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d63a9224368bd2eaf744b82a3c0f675671699d9b;p=thirdparty%2Fbootstrap.git Fix Popper preventOverflow boundary config (#32845) Currently, the boundary config is being assigned to the wrong var (`rootBoundary`) in the popper config. It should be assigned to the `boundary` var in popper's config. Ref: https://popper.js.org/docs/v2/utils/detect-overflow/#boundary --- diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 3667fa1113..06b561425a 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -318,7 +318,7 @@ class Dropdown extends BaseComponent { name: 'preventOverflow', options: { altBoundary: this._config.flip, - rootBoundary: this._config.boundary + boundary: this._config.boundary } }, { diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 6d85fde269..11209625cd 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -509,7 +509,7 @@ class Tooltip extends BaseComponent { { name: 'preventOverflow', options: { - rootBoundary: this.config.boundary + boundary: this.config.boundary } }, {