Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
fix: handle clearing input
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0dr1y committed May 22, 2024
1 parent 7bbca18 commit 8e53e66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-typeahead3",
"version": "1.2.4",
"version": "1.2.5",
"files": [
"dist"
],
Expand Down
2 changes: 1 addition & 1 deletion src/Typeahead.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ watch(modelValue, (newVal: Record<string, string>, oldVal: Record<string, string
});
watch(searchTerm, (newVal: string) => {
if (!newVal || newVal.length === 0) {
selected.value = false;
handleEsc();
}
});
</script>
Expand Down

0 comments on commit 8e53e66

Please sign in to comment.