You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to remove masks on form submit. I don't know if there's a better way to do it, but reading the types I found removeMaskOnSubmit, but unfortunately doesn't work too.
<Input{...field}// react-hook-form field props{...registerWithMask("phone",["(999) 999-9999"],{removeMaskOnSubmit: true,})}type="text"/>
What is the right way to do it?
The text was updated successfully, but these errors were encountered:
For those who are searching something similar, I found out that autoUnmask: true does the trick. This works to validate the raw value with zod schema too.
Don't know if this is the optimal way, but works for now.
I'm trying to remove masks on form submit. I don't know if there's a better way to do it, but reading the types I found
removeMaskOnSubmit
, but unfortunately doesn't work too.What is the right way to do it?
The text was updated successfully, but these errors were encountered: