[Library | angular-14]: loading.component.ts: [Bug fix] In ngOnDestory changed to document.getElementById("modal-container").
This commit is contained in:
parent
92b823a1ed
commit
f91c3ba0fb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue