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

Cursor in Expiry date field works incorrectly #1823

Open
pof-wojciechszubryt opened this issue Nov 3, 2022 · 1 comment
Open

Cursor in Expiry date field works incorrectly #1823

pof-wojciechszubryt opened this issue Nov 3, 2022 · 1 comment
Labels
v6 Included in the next major release

Comments

@pof-wojciechszubryt
Copy link

pof-wojciechszubryt commented Nov 3, 2022

Describe the bug
Cursor in credit card expiry date input field works incorrectly.

To Reproduce
Steps to reproduce the behavior:

  1. Click credit card expiry date input field in DropIn
  2. Enter "1222"
  3. Place the cursor between "12" and "/22" either by keyboard or mouse
  4. Hit backspace or delete key on the keyboard
  5. Cursor remains at the same position although the digit was deleted properly, so when you now enter "1" for example you'll get the date "12/12" instead of "11/22"

Expected behavior
Digit will be deleted and cursor moves one position to the left / right. So when you now enter "1" for example you'll get the date "11/22".

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 107.0.5304.88
@sponglord
Copy link
Contributor

Hi @pof-wojciechszubryt - thanks for raising this.
This is a known issue - an annoying "quirk" of the card component (basically when reduced to 3 digits the expiryDate tries to create the basis for a new date from what is left in the field)
At the moment, however, this is low on our priority list for fixing

@sponglord sponglord added v6 Included in the next major release and removed Progress: on hold labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v6 Included in the next major release
Projects
None yet
Development

No branches or pull requests

2 participants