Skip to content

Commit

Permalink
fix(mention): fix suggestions wont close when router changed
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Jun 8, 2024
1 parent e87d7c8 commit 1ff3025
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/devui-vue/devui/mention/src/mention.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export default defineComponent({
onUnmounted(() => {
window.removeEventListener('keydown', arrowKeyDown);
document.removeEventListener('click', handleBlur);
showSuggestions.value = false;
});

return () => {
Expand Down

0 comments on commit 1ff3025

Please sign in to comment.