Picker - reset dropdown state #2378
-
Hi, I can reset TextArea/TextFields since the value is controlled, but the Picker is not. I cannot find any info in the documentation/props. Is anyone aware of a way to do this (apart from reloading the page, its a bit too ungraceful). Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Picker is like a radio, you can't unselect something. Instead, you have to offer none as an option. |
Beta Was this translation helpful? Give feedback.
-
I have actually come up with the solution, you can control what is selected using "selectedKey" so you can "unselect" all options if you set it to null. |
Beta Was this translation helpful? Give feedback.
I have actually come up with the solution, you can control what is selected using "selectedKey" so you can "unselect" all options if you set it to null.