material
material copied to clipboard
md-dialog will not close on master
Latest master, you cannot close dialog, error...
TypeError: Cannot read property 'removeChild' of null
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
Fixed! Thanks @kugler for the quick tip on restore scroll being the source.