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

Commit

Permalink
fix(autocomplete): prevents error on keydown when menu is hidden
Browse files Browse the repository at this point in the history
Closes #2774
  • Loading branch information
Robert Messerle committed May 30, 2015
1 parent c3ec08d commit a7dcfb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/autocomplete/js/autocompleteController.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $timeout, $
}

function updateScroll () {
if (!elements.li[self.index]) return;
var li = elements.li[self.index],
top = li.offsetTop,
bot = top + li.offsetHeight,
Expand Down

0 comments on commit a7dcfb6

Please sign in to comment.