fix(Regex Tester): remove shadow root on unmount

Fix #1502
This commit is contained in:
ShareVB committed 2025-07-20 22:36:50 +02:00
1 parent 0bb259c734
commit a26f2a2cf9
1 file changed
+7
+7
View File
@@ -89,6 +89,13 @@ watchEffect(
}
},
);
tryOnBeforeUnmount(() => {
const visualizer = visualizerSVG.value?.shadow_root;
if (visualizer) {
visualizer.parentElement?.removeChild(visualizer);
}
});
</script>
<template>