material icon indicating copy to clipboard operation
material copied to clipboard

md-autocomplete does not remove the dropdown on destroy

Open ddimitrop opened this issue 11 years ago • 2 comments

This may be a duplicate of https://github.com/angular/material/issues/2872 (not sure)

If the dropdown of an autocomplete becomes visible, it does not get removed when the element is destroyed.

See: http://codepen.io/anon/pen/xGqpXN Just type 'Ala' in the autocomplete box.

Since there is a lag for the resolution of an autocomplete promise, I have even seen cases where normal user interaction (say clicking quickly after typing on another tab - an action that would remove the autocomplete) results in the dropdown poping up in completely irrelevant context without a way to get rid of it (clicking on the page does not remove it anymore).

ddimitrop avatar Jun 03 '15 17:06 ddimitrop

Also happens for me, as i'm using autocomplete in a dialogue this happens fairly often.

Tyrannmisu avatar Jun 05 '15 10:06 Tyrannmisu

OK this was fixed in 0.98. Same codepen with 0.98

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

ddimitrop avatar Jun 12 '15 15:06 ddimitrop