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

Commit

Permalink
fix(autocomplete): not found message no longer gets stuck
Browse files Browse the repository at this point in the history
Closes #4309
  • Loading branch information
Robert Messerle committed Aug 28, 2015
1 parent a2cb6cf commit f2e6b16
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 @@ -589,7 +589,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $mdTheming,
}

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

/**
Expand Down

0 comments on commit f2e6b16

Please sign in to comment.