Skip to content

Commit a52f0b2

Browse files
committed
reverted the watch function for the desired use cases.
1 parent 2a8509f commit a52f0b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uiSelectChoicesDirective.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ uis.directive('uiSelectChoices',
6363
choices.remove();
6464
});
6565

66-
scope.$watch('$select.search', function(newValue, oldValue) {
67-
if(newValue !== "" && newValue !== oldValue && !$select.open && $select.multiple) $select.activate(false, true);
66+
scope.$watch('$select.search', function(newValue) {
67+
if(newValue && !$select.open && $select.multiple) $select.activate(false, true);
6868
$select.activeIndex = $select.tagging.isActivated ? -1 : 0;
6969
if ((!attrs.minimumInputLength || $select.search.length >= attrs.minimumInputLength)) {
7070
$select.refresh(attrs.refresh);

0 commit comments

Comments
 (0)