Open conor-cafferkey-sociomantic opened 7 years ago
This issue needs some clarification.
While we do already have a defaultValue
option that allows you to specify a single initially selected value, I opened this issue because:
1) Only one value can be specified (i.e. it’s not possible to specify an array of initially-selected values).
2) If placeholder
is specified defaultValue
is ignored (the placeholder option is selected instead)
After discussing with @mousemke, I think the real issue here is more along the lines of Support array as defaultValue
.
A separate issue can be opened about the default priority (issue 2 above).
Problem
Cannot initialize a Flounder with specific selected value(s).
Currently
Assuming we’re not binding to an existing
<select>
with pre-selected<option>
’s, it’s not possible to initialize Flounder with specific selected values.Wanted
Add an option/prop to set the selected value(s). This prop should accept a value string or an array of value strings.
What should it be named?
value
?values
?selectedValue
?selectedValues
?