Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit bd7cfdd

Browse files
committed
Fix #182
1 parent 1e66aad commit bd7cfdd

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

angucomplete-alt.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
scope.$on('angucomplete-alt:clearInput', function (event, elementId) {
155155
if (!elementId || elementId === scope.id) {
156156
scope.searchStr = null;
157+
callOrAssign();
157158
handleRequired(false);
158159
clearResults();
159160
}

test/angucomplete-alt.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,7 @@ describe('angucomplete-alt', function() {
13391339

13401340
expect(inputField.val()).toBe('');
13411341
expect(element.hasClass('ng-invalid-autocomplete-required')).toBe(true);
1342+
expect($scope.selectedPerson).toBeUndefined();
13421343
});
13431344
});
13441345

0 commit comments

Comments
 (0)