[BugFix] Sync dom widget store state on widget remove (#2902)

This commit is contained in:
Chenlei Hu
2025-03-06 18:29:30 -05:00
committed by GitHub
parent af31937e54
commit 5f149ceb30

View File

@@ -299,6 +299,7 @@ export class DOMWidgetImpl<T extends HTMLElement, V extends object | string>
document.removeEventListener('mousedown', this.mouseDownHandler)
}
this.element.remove()
useDomWidgetStore().unregisterWidget(this.id)
}
}