diff options
| author | fat <[email protected]> | 2013-12-24 13:43:09 -0800 |
|---|---|---|
| committer | fat <[email protected]> | 2013-12-24 13:43:09 -0800 |
| commit | f689a26a1cfa09eeeaa29137c1af7f91c94fc344 (patch) | |
| tree | b00708b38ad1734ebd06f4e93300bb81691ecc4f | |
| parent | a93a753c7d50aadbdb9a0243a9aa04f366855e46 (diff) | |
| download | bootstrap-f689a26a1cfa09eeeaa29137c1af7f91c94fc344.tar.xz bootstrap-f689a26a1cfa09eeeaa29137c1af7f91c94fc344.zip | |
note for #10486 add note about data-toggle dropdown dependency
| -rw-r--r-- | javascript.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript.html b/javascript.html index 061c0161d..ff67615eb 100644 --- a/javascript.html +++ b/javascript.html @@ -515,7 +515,7 @@ $('#myModal').on('hidden.bs.modal', function (e) { <h2 id="dropdowns-usage">Usage</h2> - <p>Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the <code>.open</code> class on the parent list item. When opened, the plugin also adds <code>.dropdown-backdrop</code> as a click area for closing dropdown menus when clicking outside the menu.</p> + <p>Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the <code>.open</code> class on the parent list item. When opened, the plugin also adds <code>.dropdown-backdrop</code> as a click area for closing dropdown menus when clicking outside the menu. Note: The <code>data-toggle=dropdown</code> attribute is relied on for closing dropdown menus at an application level, so it's a good idea to always use it.</p> <h3>Via data attributes</h3> <p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p> |
