0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

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
This commit is contained in:
Kyle Tsang 2021-02-03 20:55:25 -08:00 committed by GitHub
parent b376a3d80d
commit d63a922436
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -318,7 +318,7 @@ class Dropdown extends BaseComponent {
name: 'preventOverflow',
options: {
altBoundary: this._config.flip,
rootBoundary: this._config.boundary
boundary: this._config.boundary
}
},
{

View File

@ -509,7 +509,7 @@ class Tooltip extends BaseComponent {
{
name: 'preventOverflow',
options: {
rootBoundary: this.config.boundary
boundary: this.config.boundary
}
},
{