When I use the search input box, the last text I typed in gets cancelled. Can anyone help me with this issue?
<input
class="navbar-searchbar__text-field"
type="search"
:value="searchQuery"
name="query"
placeholder="Search"
autocomplete="off"
@keyup="collectSearchQuery($event.target.value)"
/>
Here is the method being used:
async collectSearchQuery(searchQuery) {
this.searchQuery = searchQuery;
await this.handleSearch(searchQuery);
this.searchHidden = true;
},
If you have any suggestions or solutions to fix this issue, please let me know. Thank you!