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

In MaskedEnum, block if it isn't the strict enum. #1029

Open
yertech opened this issue Apr 15, 2024 · 0 comments
Open

In MaskedEnum, block if it isn't the strict enum. #1029

yertech opened this issue Apr 15, 2024 · 0 comments

Comments

@yertech
Copy link

yertech commented Apr 15, 2024

Describe the bug
I have a mask for a Luxemburg phone like this :

mask: "{+352} 600 000 000",
blocks: {
  600: {
    mask: IMask.MaskedEnum,
    enum: ["691", "671", "661", "651", "621"],
  },
},

I want to limit the first block to that list of enums. But with that I can for exemple type 1 or 9 for the first number, if it's 691.

Expected behavior
I would like to be able to type only 6 for the first number, 2, 5,6,7 or 9 for the second and 1 for the last.
Is there any option to do that ?

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

1 participant