Fixed overlay disconnectedCallback.

This commit is contained in:
Davide Tantillo 2025-03-24 17:18:16 +01:00
parent 71780e6d60
commit f3612e73cf

View File

@ -1570,7 +1570,7 @@ class SpineWebComponentOverlay extends HTMLElement implements OverlayAttributes,
private running = false;
disconnectedCallback (): void {
const id = this.getAttribute('id');
const id = this.getAttribute('overlay-id');
if (id) SpineWebComponentOverlay.OVERLAY_LIST.delete(id);
// window.removeEventListener("scroll", this.scrollHandler);
window.removeEventListener("load", this.onLoadCallback);