From b8935a5d0c70f234acf9c103ff8298cc9a82e4f9 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 8 Apr 2015 19:20:15 -0700 Subject: [PATCH] Use .dropdown-menu instead of ARIA roles for dropdown keydown event handler; fixes #16090 --- js/dropdown.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/dropdown.js b/js/dropdown.js index 1fbf74a3177a..371e307569ab 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);