Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
fix(uiSelectCtrl): ensureHighlightVisible triggered with closed dropdown
Browse files Browse the repository at this point in the history
This fix ensures that the dropdown actually is open before calling
_ensureHighlightVisible.

Fixes: #2050
  • Loading branch information
Stefan Zollinger committed Aug 31, 2017
1 parent 2b0b17b commit 503c089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uiSelectController.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ uis.controller('uiSelectCtrl',
} else {
$timeout(function () {
ctrl.focusSearchInput(initSearchValue);
if(!ctrl.tagging.isActivated && ctrl.items.length > 1) {
if(!ctrl.tagging.isActivated && ctrl.items.length > 1 && ctrl.open) {
_ensureHighlightVisible();
}
});
Expand Down

0 comments on commit 503c089

Please sign in to comment.