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

Add space in MaskedInputFormatter() #73

Closed
marceloamp2 opened this issue Jan 3, 2022 · 7 comments
Closed

Add space in MaskedInputFormatter() #73

marceloamp2 opened this issue Jan 3, 2022 · 7 comments

Comments

@marceloamp2
Copy link

How can I add a space after the ')' in MaskedInput Format('(00) 00000-0000')? Inserted space did not work

Example: (99) 99999-9999

@sharpsan
Copy link

Same problem here. Is this a regex issue?

@caseyryan
Copy link
Owner

Space is added automatically. You simply type the next symbol and if a mask contains space, it should be added itself

@sharpsan
Copy link

Space is added automatically. You simply type the next symbol and if a mask contains space, it should be added itself

Spaces are not working as intended, then.

@caseyryan
Copy link
Owner

I'll check when I have time. Most probably it has been broken by one of the latest pull requests

@sharpsan
Copy link

I'll check when I have time. Most probably it has been broken by one of the latest pull requests

Thank you!

@btraas
Copy link

btraas commented Mar 2, 2022

It seems to me that two static characters in a row is the issue in "(###) ###-####".

Doesn't work: "(###) ###-####"
Doesn't work: "(###)-###-####"
Doesn't work: ".###. ###-####"
Works: "### ###-####"

@Yahllil
Copy link

Yahllil commented Mar 22, 2022

Any update with this? It doesn't work for me either

caseyryan added a commit that referenced this issue May 19, 2022
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

5 participants