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

Commit 6bfc31e

Browse files
author
Robert Messerle
committed
fix(autocomplete): waits for screen to reposition on focus before
locking scrolling Closes #2973
1 parent 6d45f10 commit 6bfc31e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/autocomplete/js/autocompleteController.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function MdAutocompleteCtrl ($scope, $element, $mdUtil, $mdConstant, $timeout, $
200200
function handleHiddenChange (hidden, oldHidden) {
201201
if (!hidden && oldHidden) positionDropdown();
202202
if (!hidden) {
203-
if (elements) $mdUtil.disableScrollAround(elements.ul);
203+
if (elements) $timeout(function () { $mdUtil.disableScrollAround(elements.ul); }, 0, false);
204204
} else {
205205
$mdUtil.enableScrolling();
206206
}

0 commit comments

Comments
 (0)