mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-05 08:10:30 +00:00
refac
This commit is contained in:
parent
d90d036d23
commit
2a8a2f1ba3
1 changed files with 8 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue