We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62fdf5d commit 70667adCopy full SHA for 70667ad
src/index.ts
@@ -16,3 +16,12 @@ declare var Materialize:any;
16
export function toast(...args) {
17
Materialize.toast(...args);
18
}
19
+
20
+// polyfill remove any elem in DOM - https://github.com/InfomediaLtd/angular2-materialize/issues/377 (IE)
21
+if (!Element.prototype.remove) {
22
+ Element.prototype.remove = function remove() {
23
+ if (this.parentNode) {
24
+ this.parentNode.removeChild(this);
25
+ }
26
+ };
27
+}
0 commit comments