Patrick de Freitas
Patrick de Freitas
@jseparovic I was able to bypass the issue by adding this package https://www.npmjs.com/package/regenerator-runtime then const regeneratorRuntime = require("regenerator-runtime"); after use strict at the file node_modules/react-advanced-news-ticker/dist/index.js
Having the similar issue The initial value comes from the API, let's say the phone value 4799999999 which will mask to (47)999-9999 ``` // Function to modify the input mask...
I created a page / component that gives a better idea: ``` 'use client' import { zodResolver } from '@hookform/resolvers/zod' import { MaskEventHandler, useMask } from '@react-input/mask' import { useQuery...
Hi @GoncharukBro Thanks, that makes sense, the code you provided is working, though when I receive the data using React query, the field is filled but the mask isn't triggered...
Ok, console error is gone with setValue('zip_code', data.zip_code) I was using reset() so all good on that, sill the mask doesn't trigger.
@GoncharukBro Awesome, thanks, all clear now.