material icon indicating copy to clipboard operation
material copied to clipboard

md-dialog will not close on master

Open hodeyp opened this issue 11 years ago • 2 comments

Latest master, you cannot close dialog, error...

TypeError: Cannot read property 'removeChild' of null

hodeyp avatar Jun 30 '15 06:06 hodeyp

We have the same exception when you have an mdDialog with mdAutoComplete inside - which calls the restoreScroll twice, while the second time the scrollMask was already removed. I think that $mdUtil's restoreScroll should just verify that the mask exists before trying to remove it.

Also related to https://github.com/angular/material/issues/3504

kugler avatar Jun 30 '15 10:06 kugler

Fixed! Thanks @kugler for the quick tip on restore scroll being the source.

rschmukler avatar Jun 30 '15 14:06 rschmukler