[react-hook-form] Value of country select is reset to defaultCountry
Version: 3.12.13
Using the latest version of RHF (7.41.3) the value of the PhoneInputWithCountry
is reset to defaultCountry
after resetting/clearing the field.
How to reproduce
- Update the RHF dependency in the example's CodeSandbox to the latest version.
- Add a
defaultCountry
to thePhoneInputWithCountry
. - Select any other country.
- Type something in the input, then clear it.