From f689a26a1cfa09eeeaa29137c1af7f91c94fc344 Mon Sep 17 00:00:00 2001 From: fat Date: Tue, 24 Dec 2013 13:43:09 -0800 Subject: [PATCH] note for #10486 add note about data-toggle dropdown dependency --- javascript.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript.html b/javascript.html index 061c0161d3..ff67615eb0 100644 --- a/javascript.html +++ b/javascript.html @@ -515,7 +515,7 @@ $('#myModal').on('hidden.bs.modal', function (e) { -

Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the .open class on the parent list item. When opened, the plugin also adds .dropdown-backdrop as a click area for closing dropdown menus when clicking outside the menu.

+

Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the .open class on the parent list item. When opened, the plugin also adds .dropdown-backdrop as a click area for closing dropdown menus when clicking outside the menu. Note: 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

Add data-toggle="dropdown" to a link or button to toggle a dropdown.