Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit ec6f39d

Browse files
authored
[release-2.0] fix: the global search keyboard event is not removed when the component is unmounted (#772)
This is an automated cherry-pick of #767 /assign JohnNiang ```release-note None ```
1 parent a3caa29 commit ec6f39d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/BasicLayout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ onMounted(() => {
8181
});
8282
8383
onUnmounted(() => {
84-
document.addEventListener("keydown", handleGlobalSearchKeybinding);
84+
document.removeEventListener("keydown", handleGlobalSearchKeybinding);
8585
});
8686
8787
// Generate menus by routes

0 commit comments

Comments
 (0)