Skip to content

Commit

Permalink
fix(autocomplete): not found message no longer gets stuck
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Messerle authored and kennethcachia committed Sep 23, 2015
1 parent 797ade8 commit b5919ae
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 b5919ae

Please sign in to comment.