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

Mask doesn't handle pasting values that make the value too long for the mask #20

Open
bloodyowl opened this issue Jun 21, 2016 · 0 comments
Labels

Comments

@bloodyowl
Copy link

behaviour

In the credit card example:

  • Type 123456789012
  • Write 12345 somewhere else, copy it
  • Paste after the 2 already in the field
  • Value isn't updated

expected

  • Value should be updated

Not sure what the behaviour should be exactly, I'd intuitively say that appending pastedValue.slice(0, maxLength - currentValueLength) to the value should work

@alexkuz alexkuz added the bug label Jun 21, 2016
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