fix: bug with search box key listeners still active after close

This commit is contained in:
Andrew Bastin
2021-10-19 14:42:39 +05:30
parent aaff07bba2
commit 1c51f8b32e
3 changed files with 17 additions and 8 deletions

View File

@@ -56,7 +56,11 @@ const { bindArrowKeysListerners, unbindArrowKeysListerners, selectedEntry } =
stopPropagation: true,
})
onMounted(bindArrowKeysListerners)
onMounted(() => {
bindArrowKeysListerners()
})
onUnmounted(unbindArrowKeysListerners)
onUnmounted(() => {
unbindArrowKeysListerners()
})
</script>