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

Commit

Permalink
fix(autocomplete): changing windows while typing (with no results) no…
Browse files Browse the repository at this point in the history
… longer breaks scrolling

Closes #3546
  • Loading branch information
Robert Messerle committed Jul 9, 2015
1 parent 5edca0e commit c0659cc
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 @@ -434,7 +434,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $timeout, $
* @returns {boolean}
*/
function shouldHide () {
if (!isMinLengthMet()) return true;
if (!isMinLengthMet() || !ctrl.matches.length) return true;
}

/**
Expand Down

0 comments on commit c0659cc

Please sign in to comment.