-
Notifications
You must be signed in to change notification settings - Fork 67
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
When you want to edit credit card number cursor should remain at the same position #23
Comments
Can't seem to reproduce this. What browser are you using? |
It seems to be only happening on amex cards because it is the only card with a different codepath (doesn't have a "global" regex pattern). https://github.com/medipass/react-credit-card-input/blob/master/src/utils/formatter.js#L123-L125 |
We have just recently published a new library, React Payment Inputs which is a rewrite of react-credit-card-input, and fixes a lot of issues that were raised in this repository as well as a few extra enhancements. Your issue that you raised here should be fixed in React Payment Inputs - however, if you wish to still use react-credit-card-inputs, I'll try find time to fix this issue in the future. |
Steps to repro
expected result :
you should keep cursor position
Tested :
Was tested on demo page from here
The text was updated successfully, but these errors were encountered: