]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix boundary config description for dropdown and popover (#32979)
authorKyle Tsang <6854874+kyletsang@users.noreply.github.com>
Thu, 4 Feb 2021 05:26:32 +0000 (21:26 -0800)
committerGitHub <noreply@github.com>
Thu, 4 Feb 2021 05:26:32 +0000 (07:26 +0200)
site/content/docs/5.0/components/dropdowns.md
site/content/docs/5.0/components/popovers.md

index 4c80e863c05516c684452fac7bae84dbbf441ab9..199c7a024fb18c674388f7d1cfb32fa366648dd4 100644 (file)
@@ -881,7 +881,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
     <tr>
       <td><code>boundary</code></td>
       <td>string | element</td>
-      <td><code>'scrollParent'</code></td>
+      <td><code>'clippingParents'</code></td>
       <td>Overflow constraint boundary of the dropdown menu. By default it's <code>'clippingParents'</code> and can accept an HTMLElement reference (JavaScript only). For more information refer to Popper's <a href="https://popper.js.org/docs/v2/utils/detect-overflow/#boundary">preventOverflow docs</a>.</td>
     </tr>
     <tr>
@@ -915,8 +915,6 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
   </tbody>
 </table>
 
-Note when `boundary` is set to any value other than `'scrollParent'`, the style `position: static` is applied to the `.dropdown` container.
-
 ### Methods
 
 <table class="table">
index 3fac255267981ce4922eacf8b058cf6566391774..13d3edd7fee51c8656d1416e4d36a35776740f19 100644 (file)
@@ -237,8 +237,8 @@ Note that for security reasons the `sanitize`, `sanitizeFn`, and `allowList` opt
     <tr>
       <td><code>boundary</code></td>
       <td>string | element</td>
-      <td><code>'scrollParent'</code></td>
-      <td>Overflow constraint boundary of the popover. Accepts the values of <code>'viewport'</code>, <code>'window'</code>, <code>'scrollParent'</code>, or an HTMLElement reference (JavaScript only). For more information refer to Popper's <a href="https://popper.js.org/docs/v2/utils/detect-overflow/#boundary">preventOverflow docs</a>.</td>
+      <td><code>'clippingParents'</code></td>
+      <td>Overflow constraint boundary of the popover. By default it's <code>'clippingParents'</code> and can accept an HTMLElement reference (JavaScript only). For more information refer to Popper's <a href="https://popper.js.org/docs/v2/utils/detect-overflow/#boundary">preventOverflow docs</a>.</td>
     </tr>
     <tr>
       <td><code>customClass</code></td>