When passed a simple array of strings as the options property, the native mode of Select is rendering value attributes on each child option tag. This results in every selection being interpreted as setting the select to "". As a result the onChange handler is not fired and the select's value does not properly update.
Bug
When passed a simple array of strings as the
options
property, the native mode of Select is renderingvalue
attributes on each childoption
tag. This results in every selection being interpreted as setting theselect
to""
. As a result theonChange
handler is not fired and the select's value does not properly update.Package Version: 5.0.2
Code
Expected behavior:
The
value
attribute should be empty in this case so the text of theoption
element is used as the value. Actual behavior:A
value
attribute with no value is being added to eachoption
, causing the select to have incorrectly.