refactor: make keyboard dismissable on search bars

This commit is contained in:
Rainer Killinger
2022-05-27 11:56:36 +02:00
parent 9d31365d0a
commit 786abdbefa
5 changed files with 27 additions and 2 deletions

View File

@@ -12,9 +12,12 @@
</ion-buttons>
<ion-searchbar
(ngModelChange)="searchStringChanged($event)"
(keyup.enter)="hideKeyboard()"
[(ngModel)]="queryText"
showClearButton="always"
placeholder="{{ 'search.search_bar.placeholder' | translate }}"
showClearButton="always"
type="search"
enterkeyhint="search"
>
</ion-searchbar>
</ion-toolbar>