Once the installationType of the FormBody is set to undefined, I expect the the UI shows the placeholder, since the (old) value is not present in the options.
FInally I got it, the problem are the undefined properties of the form, they have to be nullable instead, see this sample. Thanks to @"Vincent Peres" on stackoverflow.
I am trying to combine
react-select
withreact-hook-form
.Here the sample.
Versions used
Steps to reproduce my problem:
setValue('installationType', undefined);
Current behaviour:
https://github.com/JedWatson/react-select/assets/9129912/d80182cc-6519-41f9-9533-a11df27c94cc
Expected bevaviour: