-
Notifications
You must be signed in to change notification settings - Fork 11
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
Integrate with react-hook-form control
#59
Comments
You can use it. Just re-subscribing ref value using withMask function <Controller
name="test"
render={({ field }) => {
return <input {...field} ref={withMask('9999-9999')}/>; // ✅
}}
/> |
Hey @hanza93 im working on it, but for now you can use |
@alysonvilela is problem with this solution because if you pass withMask as ref then primary functionality that scroll and focus element with errors stop working i mean if you set |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are using the controlled version for react-hook-form by using
useControl
hook. it would be awesome if we can useuseHookFormMask
withcontrol
tooThe text was updated successfully, but these errors were encountered: