mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
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:
@ -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. */
|
||||
|
Reference in New Issue
Block a user