Skip to content

Commit

Permalink
Use .dropdown-menu instead of ARIA roles for dropdown keydown event h…
Browse files Browse the repository at this point in the history
…andler; fixes twbs#16090
  • Loading branch information
cvrebert committed Apr 9, 2015
1 parent 4127b25 commit b8935a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit b8935a5

Please sign in to comment.