fix(input): ionInput event emits with type of InputEvent (#24111)

The ionInput event for both ion-input and ion-textarea will emit with a type of InputEvent.
This commit is contained in:
Sean Perkins
2021-11-08 16:01:38 -05:00
committed by GitHub
parent da339a8a74
commit 52cd5d0cce
7 changed files with 12 additions and 12 deletions

View File

@ -680,7 +680,7 @@ export declare interface IonInput extends Components.IonInput {}
})
export class IonInput {
/** Emitted when a keyboard input occurred. */
ionInput!: EventEmitter<CustomEvent<KeyboardEvent>>;
ionInput!: EventEmitter<CustomEvent<InputEvent>>;
/** Emitted when the value has changed. */
ionChange!: EventEmitter<CustomEvent<IInputInputChangeEventDetail>>;
/** Emitted when the input loses focus. */
@ -1558,7 +1558,7 @@ export class IonTextarea {
/** Emitted when the input value has changed. */
ionChange!: EventEmitter<CustomEvent<ITextareaTextareaChangeEventDetail>>;
/** Emitted when a keyboard input occurred. */
ionInput!: EventEmitter<CustomEvent<KeyboardEvent>>;
ionInput!: EventEmitter<CustomEvent<InputEvent>>;
/** Emitted when the input loses focus. */
ionBlur!: EventEmitter<CustomEvent<FocusEvent>>;
/** Emitted when the input has focus. */