fix: Correctly remove child elements with integrated UI remove (#1219)

This commit is contained in:
1natsu
2024-11-28 13:39:25 +09:00
committed by GitHub
parent 241c907c65
commit 586fe3950c
@@ -34,6 +34,7 @@ export function createIntegratedUi<TMounted>(
};
const remove = () => {
options.onRemove?.(mounted);
wrapper.replaceChildren();
wrapper.remove();
mounted = undefined;
};