-
-
Notifications
You must be signed in to change notification settings - Fork 369
Closed
Labels
component: selectChanges related to the select component.Changes related to the select component.type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
Bug report
Current behavior
When using the Select component with multiple selection enabled, data-filled is always set, even when no options are selected.
Note: The screenshot above is from the documentation running locally, with the MultiSelectExample code changed to wrap the select in a <Field.Root> to get the data- attributes.
Expected behavior
When no options are selected, data-filled should be absent.
Base UI version
1.0.0
Which browser are you using?
Chrome 142
Which OS are you using?
macOS
Which assistive tech are you using (if applicable)?
N/A
Additional context
Select multiples have a default value of [] instead of null.
The code that sets filled checks for null only:
| setFilled(value !== null); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: selectChanges related to the select component.Changes related to the select component.type: bugIt doesn't behave as expected.It doesn't behave as expected.