fix: fix memory leaking of Drawer (#23724)
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
}
|
||||
|
||||
onDestroy(() => {
|
||||
window.removeEventListener('keydown', handleKeyDown);
|
||||
show = false;
|
||||
if (modalElement) {
|
||||
if (document.body.contains(modalElement)) {
|
||||
|
||||
Reference in New Issue
Block a user