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

Commit 590b684

Browse files
janvandenbergkara
authored andcommitted
fix(dialog): add check that scrollmask is present (#10708)
1 parent c1b715f commit 590b684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/util/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function UtilFactory($document, $timeout, $compile, $rootScope, $$mdAnimate, $in
264264
scrollMask.off('wheel');
265265
scrollMask.off('touchmove');
266266

267-
if (!options.disableScrollMask) {
267+
if (!options.disableScrollMask && scrollMask[0].parentNode ) {
268268
scrollMask[0].parentNode.removeChild(scrollMask[0]);
269269
}
270270
};

0 commit comments

Comments
 (0)