Files
ionic-framework/core/src/components/textarea/textarea-interface.ts
Liam DeBeasi eea6ba996c feat(input, textarea): ionInput and ionChange pass event and value (#26176)
BREAKING CHANGE:

The `detail` payload for the `ionInput` event on `ion-input` and `ion-textarea` now contains an object with the current `value` as well as the native event that triggered `ionInput`.
2022-11-01 12:30:58 -04:00

15 lines
318 B
TypeScript

export interface TextareaChangeEventDetail {
value?: string | null;
event?: Event;
}
export interface TextareaInputEventDetail {
value?: string | null;
event?: Event;
}
export interface TextareaCustomEvent<T = TextareaChangeEventDetail> extends CustomEvent {
detail: T;
target: HTMLIonTextareaElement;
}