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

Commit 281bc52

Browse files
author
Robert Messerle
committed
fix(autocomplete): resolves issue with not-found message displaying unnecessarily
1 parent e269dea commit 281bc52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/autocomplete/js/autocompleteController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
604604
}
605605

606606
function notFoundVisible () {
607-
return !ctrl.matches.length && !ctrl.loading && ctrl.scope.searchText && hasFocus && !ctrl.scope.selectedItem;
607+
return !ctrl.matches.length && !ctrl.loading && ctrl.scope.searchText >= getMinLength() && hasFocus && !ctrl.scope.selectedItem;
608608
}
609609

610610
/**

0 commit comments

Comments
 (0)