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

Commit

Permalink
fix(autocomplete): resolves issue with not-found message displaying u…
Browse files Browse the repository at this point in the history
…nnecessarily
  • Loading branch information
Robert Messerle committed Oct 2, 2015
1 parent e269dea commit 281bc52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/autocomplete/js/autocompleteController.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
}

function notFoundVisible () {
return !ctrl.matches.length && !ctrl.loading && ctrl.scope.searchText && hasFocus && !ctrl.scope.selectedItem;
return !ctrl.matches.length && !ctrl.loading && ctrl.scope.searchText >= getMinLength() && hasFocus && !ctrl.scope.selectedItem;
}

/**
Expand Down

0 comments on commit 281bc52

Please sign in to comment.