Files
ionic-framework/core/src/components/searchbar/searchbar-interface.ts
Liam DeBeasi 865f8de9dc feat(searchbar): ionInput now emits value payload (#26831)
resolves #26828

BREAKING CHANGE:

The `detail` payload for the `ionInput` event now on `ion-searchbar` contains an object with the current `value` as well as the native event that triggered `ionInput`.
2023-02-23 12:15:43 -05:00

15 lines
316 B
TypeScript

export interface SearchbarChangeEventDetail {
value?: string | null;
event?: Event;
}
export interface SearchbarInputEventDetail {
value?: string | null;
event?: Event;
}
export interface SearchbarCustomEvent extends CustomEvent {
detail: SearchbarChangeEventDetail;
target: HTMLIonSearchbarElement;
}