fix(textarea): clearOnEdit clears textarea when user initially types (#26006)

This commit is contained in:
Sean Perkins
2022-10-10 14:20:50 -04:00
committed by GitHub
parent bf5e118313
commit f7176bbb44
4 changed files with 63 additions and 22 deletions

View File

@ -6564,9 +6564,9 @@ declare namespace LocalJSX {
*/
"onIonFocus"?: (event: IonTextareaCustomEvent<FocusEvent>) => void;
/**
* Ths `ionInput` event fires when the `value` of an `<ion-textarea>` element has been changed.
* The `ionInput` event fires when the `value` of an `<ion-textarea>` element has been changed. When `clearOnEdit` is enabled, the `ionInput` event will be fired when the user clears the textarea by performing a keydown event.
*/
"onIonInput"?: (event: IonTextareaCustomEvent<InputEvent | null>) => void;
"onIonInput"?: (event: IonTextareaCustomEvent<InputEvent>) => void;
/**
* Emitted when the styles change.
*/