How to mask with a pattern but commit without the pattern #1048
Unanswered
angelod1as
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using
react-imask: 6.4.3
.I have the following component:
I need the displayed values to have a space between some character, so I modified the mask to:
The issue (for me, as I understand that's expected) is that the value commited to
onAccept
is with the spaces. I need it to only show the spaces, but commit without it.I came to this solution but I think there might be a better way.
Is there a way to show the input with a pattern but commit with a different pattern?
Beta Was this translation helpful? Give feedback.
All reactions