You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having an<SelectPicker.Item with the value null and and parsing a value 0 as value in one of the other fields the Item with the null value is being selected
<SelectPickerselected={0}><SelectPicker.Itemlabel="Select none"value={null}/> /* THIS WILL VE SELECTED */
<SelectPicker.Itemlabel="option #1"value={0}/><SelectPicker.Itemlabel="option #2"value={1}/><SelectPicker.Itemlabel="option #3"value={2}/></SelectPicker>
Expected behaviour
When parsing any as selected the Item with the value matching the value of selected should be picked.
Eg:
parsing selected={0} should select the item with the value={0}
parsing selected={1} should select the item with the value={1}
parsing selected={null} should select the item with the value={null}
As a temporary solution i moved the Select none to the bottom of the list
The text was updated successfully, but these errors were encountered:
When having an
<SelectPicker.Item
with the valuenull
and and parsing a value0
as value in one of the other fields the Item with the null value is being selectedExpected behaviour
When parsing any as
selected
the Item with the value matching the value of selected should be picked.Eg:
selected={0}
should select the item with thevalue={0}
selected={1}
should select the item with thevalue={1}
selected={null}
should select the item with thevalue={null}
As a temporary solution i moved the
Select none
to the bottom of the listThe text was updated successfully, but these errors were encountered: