mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
fix(input): add event emitters for blur and focus to the ion-input component
fixes #5487
This commit is contained in:
@ -9,7 +9,11 @@
|
||||
|
||||
<ion-item>
|
||||
<ion-label fixed>To</ion-label>
|
||||
<ion-input [(ngModel)]="input1"></ion-input>
|
||||
<ion-input [(ngModel)]="input1"
|
||||
(blur)="onEvent($event)"
|
||||
(input)="onEvent($event)"
|
||||
(focus)="onEvent($event)">
|
||||
</ion-input>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
@ -29,7 +33,11 @@
|
||||
|
||||
<ion-item>
|
||||
<ion-label fixed>Comments</ion-label>
|
||||
<ion-textarea value="Comment value"></ion-textarea>
|
||||
<ion-textarea value="Comment value"
|
||||
(blur)="onEvent($event)"
|
||||
(input)="onEvent($event)"
|
||||
(focus)="onEvent($event)">
|
||||
</ion-textarea>
|
||||
</ion-item>
|
||||
|
||||
<ion-item>
|
||||
|
Reference in New Issue
Block a user