Skip to content

Commit f97e06d

Browse files
dimircpgrm
authored andcommitted
Resolves angular-ui#976 (scroll to the selected item)
1 parent d6c68c9 commit f97e06d

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 && ctrl.items.length > 1) {
96+
_ensureHighlightVisible();
97+
}
9598
});
9699
}
97100
};

0 commit comments

Comments
 (0)