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

mdAutocomplete locks page if selected-item-change removes the autocomplete #5407

Closed
lyschoening opened this issue Oct 28, 2015 · 4 comments
Closed
Milestone

Comments

@lyschoening
Copy link

If selected-item-change is fired and the same digest cycle removes the autocomplete using ng-if, the page will remain masked by the temporary element used to prevent scrolling while the autocomplete is open.

Example Codepen:

http://codepen.io/anon/pen/YyLrYg

This closed issue seems somewhat related #3546

@mzbyszynski
Copy link
Contributor

I ran in to a similar issue (#5213) when I was using an md-autocomplete to change to different ngRoute views.

@robertmesserle
Copy link
Contributor

@lyschoening @mzbyszynski For now, a workaround is to wrap the removal code in a timeout:

$timeout(function () {
  //-- code that causes removal of autocomplete
});

@lyschoening
Copy link
Author

@robertmesserle $mdUtil.enableScrolling()

@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc4, 1.0-rc5 Nov 16, 2015
@robertmesserle robertmesserle modified the milestones: 1.0-rc8, 1.0-rc5, 1.0-rc6 Nov 20, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc6, 1.0-rc8 Nov 25, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc8, 1.1.0, Backlog Jan 5, 2016
@ThomasBurleson ThomasBurleson modified the milestones: Backlog, Deprecated Apr 20, 2016
@ThomasBurleson
Copy link
Contributor

This issue is closed as part of our deprecation effort.
For details, see our post Spring Cleaning 2016.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants