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