Skip to content

Commit

Permalink
Merge pull request #84 from meet-aniket/#2cj8nc4
Browse files Browse the repository at this point in the history
Improved: code to assign input field to instance variable for searchbar (#2cj8nc4).
  • Loading branch information
adityasharma7 authored May 17, 2022
2 parents fd9ebae + 85e94fe commit ef7bd7a
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 ef7bd7a

Please sign in to comment.