Skip to content

Commit

Permalink
Merge pull request #68 from kerryj89/patch-1
Browse files Browse the repository at this point in the history
Fix keyboard navigation in dropdown
  • Loading branch information
Morgul authored May 6, 2022
2 parents 0c839cb + ab74c54 commit 2cfc313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dropdown/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.multiMap', 'ui.bootstrap.

scope.focusDropdownEntry = function(keyCode) {
var elems = self.dropdownMenu ? //If append to body is used.
angular.element(self.dropdownMenu).find('.dropdown-item') :
$element.find('div').eq(0).find('a.');
angular.element(self.dropdownMenu[0].querySelectorAll('.dropdown-item')) :
angular.element($element[0].querySelectorAll('div .dropdown-item'));

switch (keyCode) {
case 40: {
Expand Down

0 comments on commit 2cfc313

Please sign in to comment.