You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior
'ionChange' event should behave like a regular input 'change' event where the event is only fired when the value has changed and the field is exited.
The text was updated successfully, but these errors were encountered:
This is by design, ionChange is fired every time the input.value changes, feel free to use the debounce prop, in order to reduce the number of times ionChange is called!
Hello @manucorporat, I agree with @ajmchambers that this is a bug, or at the very least a feature request, I am using (ionChange)="someFunction()" with debounce="500" on an , and the function is still called immediately. Debounce doesn't seem to be implemented for . Could you clarify what you meant?
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic Info
@ionic/core : 4.0.0-beta.7
Describe the Bug
ion-input fires the ionChange event for every keypress, rather than when the input's value has changed and has been committed.
Steps to Reproduce
Add an ionChange event listener to an ion-input element, then type into the input
Related Code
a JSFiddle example with ion-input and regular input for comparison (check console output):
Expected Behavior
'ionChange' event should behave like a regular input 'change' event where the event is only fired when the value has changed and the field is exited.
The text was updated successfully, but these errors were encountered: