mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
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`.
This commit is contained in:
@ -291,10 +291,9 @@ export class Input implements ComponentInterface {
|
||||
* Depending on the way the users interacts with the element, the `ionChange`
|
||||
* event fires at a different moment:
|
||||
* - When the user commits the change explicitly (e.g. by selecting a date
|
||||
* from a date picker for `<ion-input type="date">`, etc.).
|
||||
* from a date picker for `<ion-input type="date">`, pressing the "Enter" key, etc.).
|
||||
* - When the element loses focus after its value has changed: for elements
|
||||
* where the user's interaction is typing.
|
||||
*
|
||||
*/
|
||||
@Event() ionChange!: EventEmitter<InputChangeEventDetail>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user