Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(autocomplete): will no longer query when item is selected
Browse files Browse the repository at this point in the history
Closes #1835
Closes #1732
  • Loading branch information
Robert Messerle committed Mar 18, 2015
1 parent 1a8b565 commit 5f14126
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/autocomplete/js/autocompleteController.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
self.index = 0;
//-- clear selected item if search text no longer matches it
if (searchText !== getDisplayValue($scope.selectedItem)) $scope.selectedItem = null;
else return;
//-- cancel results if search text is not long enough
if (!searchText || searchText.length < Math.max(parseInt($scope.minLength, 10), 1)) {
self.loading = false;
Expand Down

0 comments on commit 5f14126

Please sign in to comment.