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

Commit 503c089

Browse files
author
Stefan Zollinger
committed
fix(uiSelectCtrl): ensureHighlightVisible triggered with closed dropdown
This fix ensures that the dropdown actually is open before calling _ensureHighlightVisible. Fixes: #2050
1 parent 2b0b17b commit 503c089

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)