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 2ab2926 commit 64eb6b0Copy full SHA for 64eb6b0
components/modal/modal.service.ts
@@ -4,6 +4,16 @@ import { SuiModal } from "./modal";
4
import { Modal } from "./modal-controls";
5
import { ActiveModal } from "./active-modal";
6
7
+if (!("remove" in Element.prototype)) {
8
+ Element.prototype.remove = function():void {
9
+ // tslint:disable-next-line:no-invalid-this
10
+ const node = this;
11
+ if (node.parentNode) {
12
+ node.parentNode.removeChild(node);
13
+ }
14
+ };
15
+}
16
+
17
@Injectable()
18
export class SuiModalService {
19
constructor(private _applicationRef:ApplicationRef,
0 commit comments