Skip to content

Commit

Permalink
fix key navigation
Browse files Browse the repository at this point in the history
- add reset live search if the dropdown is opened with the key navigation
  • Loading branch information
MrWook authored Jan 8, 2018
1 parent 8739ff2 commit 342a998
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nya-bs-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ nyaBsSelect.directive('nyaBsSelect', ['$parse', '$document', '$timeout', '$compi

// if live search enabled. give focus to search box.
if($attrs.liveSearch === 'true') {
reset_search();
searchBox.children().eq(0)[0].focus();
// find the focusable node but we will use active
nyaBsOptionNode = findFocus(true);
Expand Down

0 comments on commit 342a998

Please sign in to comment.