Prerequisites
What theme are you using?
core
Version
6.4.1
Current Behavior
Bug
I understand that showing an empty option for enum/select fields may be intentional in the general case, and the docs describe empty-value behavior for selects. But for a required enum field this looks incorrect, because the schema does not allow an empty value and the UI still shows a blank selectable item.
Actual
An empty first option is rendered even though the field is required and the enum contains only non-empty values.
Expected Behavior
A required enum field should not render an empty option unless that empty option is explicitly defined by schema or uiSchema.
Steps To Reproduce
Sandbox reproduction
Prerequisites
What theme are you using?
core
Version
6.4.1
Current Behavior
Bug
I understand that showing an empty option for enum/select fields may be intentional in the general case, and the docs describe empty-value behavior for selects. But for a
requiredenum field this looks incorrect, because the schema does not allow an empty value and the UI still shows a blank selectable item.Actual
An empty first option is rendered even though the field is required and the enum contains only non-empty values.
Expected Behavior
A required enum field should not render an empty option unless that empty option is explicitly defined by schema or uiSchema.
Steps To Reproduce
Sandbox reproduction