This commit is contained in:
Timothy Jaeryang Baek
2025-12-04 20:40:52 -05:00
parent d90d036d23
commit 2a8a2f1ba3

View File

@@ -12,7 +12,14 @@
});
onDestroy(() => {
document.body.removeChild(popupElement);
if (popupElement && popupElement.parentNode) {
try {
popupElement.parentNode.removeChild(popupElement);
} catch (err) {
console.warn('Failed to remove popupElement:', err);
}
}
document.body.style.overflow = 'unset';
});
</script>