From f91c3ba0fb4c6c70b76ef54203258d454bf7fc18 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Fri, 16 Dec 2022 17:21:37 +0200 Subject: [PATCH] [Library | angular-14]: loading.component.ts: [Bug fix] In ngOnDestory changed to document.getElementById("modal-container"). --- utils/modal/loading.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/modal/loading.component.ts b/utils/modal/loading.component.ts index aafa6789..7dcd3ed9 100644 --- a/utils/modal/loading.component.ts +++ b/utils/modal/loading.component.ts @@ -90,7 +90,7 @@ export class ModalLoading{ ngOnDestroy() { if(typeof document !== "undefined") { - const element = document.getElementById("modal-loading-container"); + const element = document.getElementById("modal-container"); for (let i = element.childNodes.length - 1; i >= 0; --i) { let child: ChildNode = element.childNodes[i]; if (child['id'] == this.id) {