diff options
| author | Gaƫl Poupard <[email protected]> | 2020-11-18 11:50:55 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-11-18 12:50:55 +0200 |
| commit | 2b0b3091a0dfc965c8400e4aefeb0e710fa86dc6 (patch) | |
| tree | b32e6dcb75167cc1441d0a2435c197bb84eed04b | |
| parent | 1955ffc01e64bc53618b39ff6e2c5d1709988fe1 (diff) | |
| download | bootstrap-2b0b3091a0dfc965c8400e4aefeb0e710fa86dc6.tar.xz bootstrap-2b0b3091a0dfc965c8400e4aefeb0e710fa86dc6.zip | |
docs(dropdowns): clarify where is `.show` applied (#32189)
Fixes #32712
| -rw-r--r-- | site/content/docs/5.0/components/dropdowns.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/content/docs/5.0/components/dropdowns.md b/site/content/docs/5.0/components/dropdowns.md index 921315e22..fab0296c5 100644 --- a/site/content/docs/5.0/components/dropdowns.md +++ b/site/content/docs/5.0/components/dropdowns.md @@ -815,7 +815,7 @@ Use `data-bs-offset` or `data-bs-reference` to change the location of the dropdo ## Usage -Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the `.show` class on the parent list item. The `data-bs-toggle="dropdown"` attribute is relied on for closing dropdown menus at an application level, so it's a good idea to always use it. +Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the `.show` class on the parent `.dropdown-menu`. The `data-bs-toggle="dropdown"` attribute is relied on for closing dropdown menus at an application level, so it's a good idea to always use it. {{< callout info >}} On touch-enabled devices, opening a dropdown adds empty `mouseover` handlers to the immediate children of the `<body>` element. This admittedly ugly hack is necessary to work around a [quirk in iOS' event delegation](https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html), which would otherwise prevent a tap anywhere outside of the dropdown from triggering the code that closes the dropdown. Once the dropdown is closed, these additional empty `mouseover` handlers are removed. |
