We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dfb953c + 478796c commit d285c1bCopy full SHA for d285c1b
src/select.js
@@ -129,6 +129,10 @@ angular.module('ui.select', [])
129
function _resetSearchInput() {
130
if (ctrl.resetSearchInput) {
131
ctrl.search = EMPTY_SEARCH;
132
+ //reset activeIndex
133
+ if (ctrl.selected && ctrl.items.length) {
134
+ ctrl.activeIndex = ctrl.items.indexOf(ctrl.selected);
135
+ }
136
}
137
138
@@ -284,7 +288,7 @@ angular.module('ui.select', [])
284
288
}])
285
289
286
290
.directive('uiSelect',
287
- ['$document', 'uiSelectConfig', 'uiSelectMinErr',
291
+ ['$document', 'uiSelectConfig', 'uiSelectMinErr',
292
function($document, uiSelectConfig, uiSelectMinErr) {
293
294
return {
0 commit comments