Skip to content

Commit d3b38ec

Browse files
CornallyuxDaniel
authored andcommitted
Fix for "Opening the dropdown should scroll to the selected item. angular-ui#976"
1 parent 0ac10b0 commit d3b38ec

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
@@ -80,6 +80,9 @@ uis.controller('uiSelectCtrl',
8080
$timeout(function() {
8181
ctrl.search = initSearchValue || ctrl.search;
8282
ctrl.searchInput[0].focus();
83+
if(!ctrl.tagging.isActivated) {
84+
_ensureHighlightVisible();
85+
}
8386
});
8487
}
8588
};

0 commit comments

Comments
 (0)