-
Notifications
You must be signed in to change notification settings - Fork 65
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
Entering every 4th digit doesn't trigger onChange #21
Comments
I'm having this very same issue but only when using redux-forms. |
Hi, the same issue, have you found a way to fix it? |
It looks like an issue with paymentjs and React: jessepollak/payment#53 |
@ferenckv @Stas-Buzunko I came up with a working solution the other day: mmcnellis@1c416aa Just add a function in the parent component that updates card number in state, and pass it as the updateNumber prop. Works like a charm |
I'll wait for a development on the card.js front. Maybe they will find a solution for that. |
Thanks for the workaround to this annoying bug, @mmcnellis! (Although I prefer to pass the whole |
Is this issue solved with the new version? |
Due to
Payment.formatCardNumber ReactDOM.findDOMNode(@refs[@inputsRefs[inputsNames["number"]]])
the DOM is directly manipulated on every 4th digit entry, and thus card data cannot be saved to state using onChange events.
The text was updated successfully, but these errors were encountered: