]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Backport #32189
authorXhmikosR <xhmikosr@gmail.com>
Wed, 18 Nov 2020 19:08:02 +0000 (21:08 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 24 Nov 2020 06:40:11 +0000 (08:40 +0200)
docs(dropdowns): clarify where is `.show` applied

site/content/docs/4.5/components/dropdowns.md

index 6f8ba5794b6bc5f4968d2a525772229b829dfe37..e2c7fb52785a9ef4baefa3d5fd6ebde42480dafa 100644 (file)
@@ -772,7 +772,7 @@ Use `data-offset` or `data-reference` to change the location of the dropdown.
 
 ## 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-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-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 (`$.noop`) `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.