I created a custom FormCurrencyField that uses MUI TextField, react-number-format NumericFormat, and react-hook-form useController.
It works: the values are correctly formatted as currencies and the form model is correctly updated.
The issue I am having with it is that if I delete the content of the TextField, it gets re-set with the default value. I cannot figure out why.
Here is a demo of the issue: https://stackblitz.com/edit/react-odfkwv
You use
defaultValues, this is shown when there is no values. Instead of that usevalueslike so :