Skip to content

Commit 84d465d

Browse files
committed
Fix linting and IE11 unsupported error
1 parent aa404c5 commit 84d465d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/core/ripple/ripple-renderer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {ElementRef, NgZone} from '@angular/core';
2-
import {MdRipple} from './ripple';
32
import {ViewportRuler} from '../overlay/position/viewport-ruler';
43

54

@@ -117,7 +116,9 @@ export class RippleRenderer {
117116
ripple.style.opacity = '0';
118117

119118
// Once the ripple faded out, the ripple can be safely removed from the DOM.
120-
this.runTimeoutOutsideZone(() => ripple.remove(), RIPPLE_FADE_OUT_DURATION);
119+
this.runTimeoutOutsideZone(() => {
120+
ripple.parentNode.removeChild(ripple);
121+
}, RIPPLE_FADE_OUT_DURATION);
121122
}
122123

123124
/** Sets the trigger element and registers the mouse events. */

0 commit comments

Comments
 (0)