[Library | angular-14]: loading.component.ts: [Bug fix] In ngOnDestory changed to document.getElementById("modal-container").

This commit is contained in:
Konstantina Galouni 2022-12-16 17:21:37 +02:00
parent 92b823a1ed
commit f91c3ba0fb
1 changed files with 1 additions and 1 deletions

View File

@ -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) {