insin / insin/react-maskedinput

Dynamically Changing Mask forces cursor to end of placeholder value

Open
#36 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.