Skip to content

Commit 8d5aaaa

Browse files
committed
Fix for "Opening the dropdown should scroll to the selected item. angular-ui#976"
1 parent bc3de20 commit 8d5aaaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/uiSelectController.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ uis.controller('uiSelectCtrl',
9292
$timeout(function() {
9393
ctrl.search = initSearchValue || ctrl.search;
9494
ctrl.searchInput[0].focus();
95+
if(!ctrl.tagging.isActivated) {
96+
_ensureHighlightVisible();
97+
}
9598
});
9699
}
97100
};

0 commit comments

Comments
 (0)