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

Pattern range #202

Open
CLMokbel opened this issue May 8, 2023 · 1 comment
Open

Pattern range #202

CLMokbel opened this issue May 8, 2023 · 1 comment

Comments

@CLMokbel
Copy link

CLMokbel commented May 8, 2023

I'm trying to make use of the pattern property on an input field. Unfortunately the pattern seems to only work strictly with given pattern and doesn't allow for a range. Is there a work around for this?

Initial number pattern is '#.###' but also want to give users the option to type in numbers '##.###'

@alitons
Copy link

alitons commented Mar 31, 2024

You can pass an array ['#.###', '##.###', '###.###, ...]

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

2 participants