]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix Popper preventOverflow boundary config (#32845)
authorKyle Tsang <6854874+kyletsang@users.noreply.github.com>
Thu, 4 Feb 2021 04:55:25 +0000 (20:55 -0800)
committerGitHub <noreply@github.com>
Thu, 4 Feb 2021 04:55:25 +0000 (06:55 +0200)
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

js/src/dropdown.js
js/src/tooltip.js

index 3667fa1113014db4414d423a580c7f96dff3b33c..06b561425ae3edd59c16c8606b8b1a9f07990f36 100644 (file)
@@ -318,7 +318,7 @@ class Dropdown extends BaseComponent {
         name: 'preventOverflow',
         options: {
           altBoundary: this._config.flip,
-          rootBoundary: this._config.boundary
+          boundary: this._config.boundary
         }
       },
       {
index 6d85fde269428c859b295d01b091f6b91f01488d..11209625cd181261e7845d9ee476ec83f88517f8 100644 (file)
@@ -509,7 +509,7 @@ class Tooltip extends BaseComponent {
         {
           name: 'preventOverflow',
           options: {
-            rootBoundary: this.config.boundary
+            boundary: this.config.boundary
           }
         },
         {