Open photz opened 5 years ago
If I'm correct, this is a current limitation by mdc or does this work with plain html?
Currently selectedIndex prop is an equivalent to value prop
Well selectedIndex takes an index not a value
ah gotcha... sorry was attention was divided back then
Lets keep this for 2.0?
In plain Preact you can choose which option of a select element should be selected like this:
Unless I've missed something, then the Select component in this package only lets you set the selected option by either setting the
selectedIndex
prop of Select itself or using theselected
prop ofSelect.Item
.I think it would make sense to let Select behave like a regular select in this regard, what do you think?