Open bizmich opened 3 weeks ago
Could you elaborate with a CodeSandbox example of the problem?
Could you elaborate with a CodeSandbox example of the problem?
Here you can see that editing any item happens, so I tried to assign data from the backend. When this assignment happens and the value of currencyType changes, the onValueChange function executes. I hope I explained it well.
We'd really need a minimal reproduction to help here
Radix UI Select's onValueChange runs on rendering without even changing anything, therefore it clears the default value that was passed with react-hook-form.