Skip to content

Commit 1ff3025

Browse files
committed
fix(mention): fix suggestions wont close when router changed
1 parent e87d7c8 commit 1ff3025

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/devui-vue/devui/mention/src/mention.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export default defineComponent({
143143
onUnmounted(() => {
144144
window.removeEventListener('keydown', arrowKeyDown);
145145
document.removeEventListener('click', handleBlur);
146+
showSuggestions.value = false;
146147
});
147148

148149
return () => {

0 commit comments

Comments
 (0)