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

Commit

Permalink
fix(autocomplete): waits for screen to reposition on focus before
Browse files Browse the repository at this point in the history
locking scrolling

Closes #2973
  • Loading branch information
Robert Messerle committed Jun 12, 2015
1 parent 6d45f10 commit 6bfc31e
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 @@ -200,7 +200,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $timeout, $
function handleHiddenChange (hidden, oldHidden) {
if (!hidden && oldHidden) positionDropdown();
if (!hidden) {
if (elements) $mdUtil.disableScrollAround(elements.ul);
if (elements) $timeout(function () { $mdUtil.disableScrollAround(elements.ul); }, 0, false);
} else {
$mdUtil.enableScrolling();
}
Expand Down

0 comments on commit 6bfc31e

Please sign in to comment.