Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Mask component has some issues with selection #19

Open
bloodyowl opened this issue Jun 21, 2016 · 3 comments
Open

Mask component has some issues with selection #19

bloodyowl opened this issue Jun 21, 2016 · 3 comments
Labels

Comments

@bloodyowl
Copy link

behaviour

  • Type 12
  • Move the caret between 1 and 2
  • Hit Backspace
  • The selection range is [1, 1]

expected

  • The selection range should be [0, 0]
@alexkuz
Copy link
Owner

alexkuz commented Jun 21, 2016

Yeah, I'm aware of this - but I haven't found an easy solution. If I remember correctly, my attempts to fix it made the code much more complicated, so I left it as it is for now.

@bloodyowl
Copy link
Author

I'll try to make this work and send a PR if you want 🙂
At least supporting this case looks important, notably when you make a typo while writing a credit card number, if the user types without looking at the field, this can be really frustrating.

@alexkuz alexkuz added the bug label Jun 21, 2016
@alexkuz
Copy link
Owner

alexkuz commented Jun 21, 2016

Sure, you're very welcome :) (for the other one as well, same story - I know about it, but I don't see an obvious solution)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants