From f3612e73cfb66429c282f254161452d139ad6214 Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Mon, 24 Mar 2025 17:18:16 +0100 Subject: [PATCH] Fixed overlay disconnectedCallback. --- spine-ts/spine-webgl/src/SpineWebComponentWidget.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-ts/spine-webgl/src/SpineWebComponentWidget.ts b/spine-ts/spine-webgl/src/SpineWebComponentWidget.ts index 4b162affc..39d3056eb 100644 --- a/spine-ts/spine-webgl/src/SpineWebComponentWidget.ts +++ b/spine-ts/spine-webgl/src/SpineWebComponentWidget.ts @@ -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);