Controlled Autocomplete (material-ui)
I'm creating a form that contains two fields: country and region. If the Country component is a Textfield, the behavior is as expected: when the Country component value is equal to "France", the Region component is an Autocomplete filled with the departements of France;…
[SOLVED] Testing the onSubmit
I'm tired of banging my head against the wall, been doing it most of the day. So first of I am very new to the world of testing, so be kind when explaining please. I also have a hard time setting up a working codesandbox for this one, but I'll give you the code I am working with…
How to do parse and format?
I'm migrating from "React Final Form" to "React Hook Form", everything works except currency input. I spent a couple hours and even try to build my own controller, But can't get it done. (For some reason, my own controller will cause infinity render when I convert value in…
After updating to version 4.9 from version 3 `defaultValues` don't work
Hey guys so I have forms like this After updating the lib, default values do not work anymore, whenever I open a form it's always empty, though the props are in place. Anybody knows what's going on here?