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 <SelectField> defaults to the first allowedValue, that value can no longer be selected without changing to another value then changing back.
This is intended behavior for a <select> tag where state is handled by the DOM, but seems like unintended behavior for uniforms where components are controlled by outside state.
Now it seems to be consistent and fully usable. All fields without value start with placeholders, and only optional ones are allowed to set it back (which clears the value).
Description
When
<SelectField>
defaults to the firstallowedValue
, that value can no longer be selected without changing to another value then changing back.This is intended behavior for a
<select>
tag where state is handled by the DOM, but seems like unintended behavior for uniforms where components are controlled by outside state.Steps to reproduce
Affects
uniforms-semantic
,uniforms-bootstrap
, anduniforms-unstyled
(any that use<select>
tags)Expected Behavior
If user selects 'xs', the state should be updated
Works fine for
uniforms-material
since a placeholder is always added as the first item.Would also be fine if a
null
or "please select" option was added by default, or if it was clear that the user must pass one in.The text was updated successfully, but these errors were encountered: