material icon indicating copy to clipboard operation
material copied to clipboard

md-autocomplete: unable to click/focus on anything after a click on the "clear" button

Open jgoux opened this issue 11 years ago • 71 comments

Steps to reproduce the bug :

  • Go on https://material.angularjs.org/HEAD/#/demo/material.components.autocomplete
  • On the first autocomplete, select something
  • Click the "clear" button
  • Now I can't click/focus on anything on the page

I'm on the master and my browser is Chrome v43

jgoux avatar Jun 16 '15 13:06 jgoux

This issue also occurs if you select an item, and then backspace to delete the input to an empty state and then click away

DrDanRyan avatar Jun 16 '15 18:06 DrDanRyan

+1 This is a major bug which blocks sites. Please provide a fix if possible.

kschwidder avatar Jun 16 '15 18:06 kschwidder

+1

tolemac avatar Jun 18 '15 09:06 tolemac

+1

sonya-s avatar Jun 18 '15 09:06 sonya-s

+1 freezing the chrome tab.

GautierT avatar Jun 18 '15 10:06 GautierT

To add to this - this seems to occur on the third consecutive click, if you use arrow keys + enter to select this doesn't occur.

If you click the autocomplete, click a selection, then click clear it locks up. I've recorded a video demonstrating here - http://screencast.com/t/NYkj14IYG9F

When we say "locks up" what is actually happening is that the <div class="md-scroll-mask"> is not being removed at some point and when you click the element it doesn't remove either.

SimeonC avatar Jun 24 '15 05:06 SimeonC

in 0.10.0 I commented out line 12469 if angular-material defineProperty('hidden', handleHiddenChange, true);

and the function at 12642 handleHiddenChange (probably redundant to do the 2nd thing)

And it seems to be working for me.. Not sure what horrible thing I'm missing out on without the element 'hiding', but at least my app doesn't lock up :smile:

charliewynn avatar Jun 25 '15 13:06 charliewynn

+1

vlad-lifliand avatar Jun 25 '15 17:06 vlad-lifliand

same here.

gitawego avatar Jun 26 '15 10:06 gitawego

+1

sricc avatar Jun 26 '15 15:06 sricc

+1

mwymann avatar Jun 29 '15 09:06 mwymann

+1

temporary css workaround
.md-scroll-mask
    position: initial

patzick avatar Jun 29 '15 09:06 patzick

+1

jozsi avatar Jun 29 '15 12:06 jozsi

+1

GuruM avatar Jul 02 '15 19:07 GuruM

:+1: serious issue mate, It really affected our website. Need a quick fix as soon as possible!

piyushchauhan2011 avatar Jul 05 '15 07:07 piyushchauhan2011

This is resolved in master and will be fixed in 0.10.1

robertmesserle avatar Jul 06 '15 20:07 robertmesserle

Thanks @robertmesserle!

GuruM avatar Jul 06 '15 21:07 GuruM

Work fine here, thats ok!

tolemac avatar Jul 07 '15 06:07 tolemac

+1

bdteo avatar Jul 27 '15 21:07 bdteo

I am unable to resolve this issue with the 0.10.1-rc5 version available of angular material. Is it resolved?Please tell me what is the fix to get it working?

prerna12 avatar Aug 11 '15 00:08 prerna12