In my form, there is an ion-button and an ion-input included.
The ion-button is not meant for submitting the form. When I try to edit a value in the input field and press "ok", I expect the keyboard to hide. However, the ion-button reacts to this event and triggers its onClick action.
You can see a demo of this issue in this Plunkr (home.html/ts) by pressing enter inside the input element. I simply want to prevent the gotoSelectedView function from being triggered.
<form [ngFormModel]="form">
<ion-list>
<ion-item>
<ion-label floating>Username</ion-label>
<ion-input ngControl="username" type="text"></ion-input>
</ion-item>
<ion-item>
<ion-label floating>Password</ion-label>
<ion-input ngControl="password" type="password"></ion-input>
</ion-item>
<button ion-item (click)="gotoSelectView()">
<ion-label >SelectItem</ion-label>
<ion-note item-right>SelectedValue</ion-note>
</button>
</ion-list>
</form>
Thank you in advance!