Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(autocomplete): prevents not found message from displaying while
Browse files Browse the repository at this point in the history
results are loading
  • Loading branch information
Robert Messerle committed May 6, 2015
1 parent 1306cff commit 3d5bd94
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/autocomplete/js/autocompleteDirective.js
Expand Up @@ -153,9 +153,10 @@ function MdAutocomplete ($mdTheming, $mdUtil) {
</li>\
' + (function () {
return noItemsTemplate
? '<li ng-if="!$mdAutocompleteCtrl.matches.length"\
ng-hide="$mdAutocompleteCtrl.hidden"\
md-autocomplete-parent-scope>' + noItemsTemplate + '</li>'
? '<li ng-if="!$mdAutocompleteCtrl.matches.length && !$mdAutocompleteCtrl.loading\
&& !$mdAutocompleteCtrl.hidden"\
ng-hide="$mdAutocompleteCtrl.hidden"\
md-autocomplete-parent-scope>' + noItemsTemplate + '</li>'
: '';
})() + '\
</ul>\
Expand Down

0 comments on commit 3d5bd94

Please sign in to comment.