insin / insin/react-maskedinput
Dynamically Changing Mask forces cursor to end of placeholder value
Open
- Dominant language
- JavaScript
- Stars
- 727
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Description
When dynamically changing the mask based on initial input like for Credit Card mask needs to be adjusted if 34 or 37 is typed in because those are amex `"1111 111111 11111"`, the mask gets adjusted appropriately, but the cursor is placed at the end of the placeholder "_"s so the user can't keep typing the rest of the number without manually moving the cursor.
Is there a prop or callback I can use to override this behavior?
Contributor guide
Assessment
This issue has not been assessed yet.