Skip to content

Commit

Permalink
Improved: code to assign input field to instance variable for searchb…
Browse files Browse the repository at this point in the history
…ar (#2cj8nc4).
  • Loading branch information
meet-aniket committed May 16, 2022
1 parent fd9ebae commit 85e94fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</ion-toolbar>
</ion-header>
<ion-content>
<ion-searchbar @ionFocus="selectSearchBarText($event)" v-model="queryString" :placeholder="$t('Search')" v-on:keyup.enter="getProducts()"/>
<ion-searchbar @ionFocus="selectSearchBarText($event)" v-model="queryString" :placeholder="$t('Search')" v-on:keyup.enter="queryString = $event.target.value; getProducts()"/>

<ion-list v-if="products.length > 0">
<ion-list-header>{{ $t("Results") }}</ion-list-header>
Expand Down

0 comments on commit 85e94fe

Please sign in to comment.