Skip to content

Commit

Permalink
Merge pull request #184 from samply/fix/clear-search-input-on-focus-loss
Browse files Browse the repository at this point in the history
fix: clear search bar input when it loses focus
  • Loading branch information
patrickskowronekdkfz authored Feb 4, 2025
2 parents 1e0bb7f + b7fea4e commit 8a7c6dc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@
}}
on:focusout={() => {
autoCompleteOpen = false;
inputValue = "";
}}
/>
{#if autoCompleteOpen && inputValue.length > 2}
Expand Down

0 comments on commit 8a7c6dc

Please sign in to comment.