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 is invoked twice on change #30

Closed
Elliot128 opened this issue Feb 15, 2017 · 1 comment
Closed

onChange is invoked twice on change #30

Elliot128 opened this issue Feb 15, 2017 · 1 comment
Milestone

Comments

@Elliot128
Copy link

When inputing into the field, the onChange prop function is invoked twice per change, which seems to be a result of this line

https://github.com/s-yadav/react-number-format/blob/master/src/number_format.js#L226

@Elliot128 Elliot128 changed the title onChange is invoked hit twice on change onChange is invoked twice on change Feb 15, 2017
@s-yadav
Copy link
Owner

s-yadav commented Feb 18, 2017

Yes the onInput callback seems to be useless. I will remove this. Must be added while testing out something.

@s-yadav s-yadav added this to the 1.1.0 milestone Feb 18, 2017
@s-yadav s-yadav closed this as completed Feb 19, 2017
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

2 participants