aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-04-08 19:20:15 -0700
committerChris Rebert <[email protected]>2015-04-08 19:20:15 -0700
commitb8935a5d0c70f234acf9c103ff8298cc9a82e4f9 (patch)
tree91134eb467187bb122244c5b9550628d9379e46f
parent4127b250db461e47639983e2ad177963316386e1 (diff)
downloadbootstrap-b8935a5d0c70f234acf9c103ff8298cc9a82e4f9.tar.xz
bootstrap-b8935a5d0c70f234acf9c103ff8298cc9a82e4f9.zip
Use .dropdown-menu instead of ARIA roles for dropdown keydown event handler; fixes #16090
-rw-r--r--js/dropdown.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/dropdown.js b/js/dropdown.js
index 1fbf74a31..371e30756 100644
--- a/js/dropdown.js
+++ b/js/dropdown.js
@@ -160,7 +160,6 @@
.on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
.on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)
.on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown)
- .on('keydown.bs.dropdown.data-api', '[role="menu"]', Dropdown.prototype.keydown)
- .on('keydown.bs.dropdown.data-api', '[role="listbox"]', Dropdown.prototype.keydown)
+ .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown)
}(jQuery);