Skip to content

Commit

Permalink
Fix boundary config description for dropdown and popover (twbs#32979)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang authored Feb 4, 2021
1 parent d63a922 commit 22d8e34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions site/content/docs/5.0/components/dropdowns.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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">
Expand Down
4 changes: 2 additions & 2 deletions site/content/docs/5.0/components/popovers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 22d8e34

Please sign in to comment.