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

Commit 39e938d

Browse files
authored
Merge pull request #2051 from zollinger/fix/ensure-highlight-visible
fix(uiSelectCtrl): ensureHighlightVisible triggered with closed dropdown
2 parents 2b0b17b + 503c089 commit 39e938d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uiSelectController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ uis.controller('uiSelectCtrl',
158158
} else {
159159
$timeout(function () {
160160
ctrl.focusSearchInput(initSearchValue);
161-
if(!ctrl.tagging.isActivated && ctrl.items.length > 1) {
161+
if(!ctrl.tagging.isActivated && ctrl.items.length > 1 && ctrl.open) {
162162
_ensureHighlightVisible();
163163
}
164164
});

0 commit comments

Comments
 (0)