mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
fix: fix memory leaking of Drawer (#23724)
This commit is contained in:
parent
26a645f9e6
commit
f102060a6d
1 changed files with 1 additions and 0 deletions
|
|
@ -41,6 +41,7 @@
|
|||
}
|
||||
|
||||
onDestroy(() => {
|
||||
window.removeEventListener('keydown', handleKeyDown);
|
||||
show = false;
|
||||
if (modalElement) {
|
||||
if (document.body.contains(modalElement)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue