Closed ghost closed 5 years ago
I seem to be having the same problem. I pass in the value on initial load (tried both string and number representation), but this.state.selectedOption is never defined.
Hi, I will try to reproduce you problem and provide a fix as soon as possible. Thanks for reporting it :) Iulian
I am also unable to set the initial value for multiselect. Thanks for your work.
Hi Pedro, Hi all, I fixed the problem in v4.1.1. I also added a new demo in storybook for this case (see 'Advanced tests' section). Please check if it works for you and in case there are still problems, please let me know. I wish you all a great day, Iulian
All good now, thanks!
I'm not being able to use this component in a controlled state.
Since I have to change it programmatically, I'm using it in an uncontrolled state and using a key to force a re-render, like that: