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

Commit 5f14126

Browse files
author
Robert Messerle
committed
fix(autocomplete): will no longer query when item is selected
Closes #1835 Closes #1732
1 parent 1a8b565 commit 5f14126

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/autocomplete/js/autocompleteController.js

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
self.index = 0;
8080
//-- clear selected item if search text no longer matches it
8181
if (searchText !== getDisplayValue($scope.selectedItem)) $scope.selectedItem = null;
82+
else return;
8283
//-- cancel results if search text is not long enough
8384
if (!searchText || searchText.length < Math.max(parseInt($scope.minLength, 10), 1)) {
8485
self.loading = false;

0 commit comments

Comments
 (0)