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

[ISSUE] Handling of slashes in expiry date field. #150

Open
DagAgren opened this issue Jun 3, 2020 · 3 comments
Open

[ISSUE] Handling of slashes in expiry date field. #150

DagAgren opened this issue Jun 3, 2020 · 3 comments
Assignees

Comments

@DagAgren
Copy link
Contributor

DagAgren commented Jun 3, 2020

When using version 1.5.1 and entering a date in an expiry date field, after inputting two letters, they are shown as "12". When entering a third, a slash is added: "12/3".

It would be clearer to the user to add the / already after entering two letters: "12/".

@dmytrokhl
Copy link
Contributor

@DagAgren this is good point, we will look if we can improve it.

@DagAgren
Copy link
Contributor Author

DagAgren commented Jun 5, 2020

This also applies to the spaces in the card number field, we just noticed. The cursor should always be placed at the location the next number will appear, so after typing "4444", the cursor should be placed as if the space had already been added, "4444 |"

@dmytrokhl
Copy link
Contributor

Yes, this is same functionality under the hood. The change will effect any field that use default or custom formatPattern.

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