next: Select "required" doesn't apply :invalid state #1021
Labels
1.x
Issues that will be addressed in 1.x of Bits UI
enhancement
An improvement to an existing feature/component
Milestone
Describe the bug
When
required
is set to true on @next version of Select component, it doesn't apply the :invalid state (or any other class that I can see) that could be used to style the trigger element. The invalid state should be applied right away when the value isn't one of the items. Maybe I'm missing something.I would also suggest a :user-invalid state that is set after an interaction with the form.
Thanks for your consideration.
Reproduction
https://stackblitz.com/edit/vitejs-vite-j8dpdx6g?file=src%2FApp.svelte
System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: