Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onChange not fired for null|empty value #298

Open
tboulis opened this issue Mar 3, 2021 · 0 comments
Open

onChange not fired for null|empty value #298

tboulis opened this issue Mar 3, 2021 · 0 comments

Comments

@tboulis
Copy link

tboulis commented Mar 3, 2021

I've noticed that after updating to v7.0.0 (from 6.2.0) the onChange event is not triggered when the input is cleared (null) while maintaining focus. After losing focus (onBlur) the value is automatically changed to 0 and then the onChange is triggered with value 0.

I saw a PR regarding this (#296) but I couldn't understand much. So I don't know if this is a feature or a bug.

If it is a feature is it possible to add a property like allowEmpty or should we use the onInput handler to capture the null value?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant