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

Can we associate the mask with mask char and formatChars with each individual position. #278

Open
umakanthsree opened this issue Feb 16, 2022 · 2 comments

Comments

@umakanthsree
Copy link

I have a mask as "99/99/9999", where my

  1. Mask Char should associate first and second 9 in the mask to dd, third and fourth to mm, and rest to yyyy.
  2. Similarly formatChars should associate the first 9 as [0-3], second to [0-9], third to [0-1], fourth to [0-9], likewise.

Please help if we already have such an example available.

@warsawgentleman
Copy link

Maybe maskPlaceholder="dd/mm/yyyy" is what you are looking for?

@briardg
Copy link

briardg commented Sep 19, 2024

Maybe maskPlaceholder="dd/mm/yyyy" is what you are looking for?

This is not working, the doc is wrong

// Will be rendered as 12/mm/yy
<InputMask mask="99/99/99" maskPlaceholder="dd/mm/yy" value="12" />

Screenshot 2024-09-19 at 17 10 46

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

No branches or pull requests

3 participants