Environment
Developement/Production OS: macOS 15.4.1 (24E263)
Node version: latest
Reka UI version: latest
Vue version: latest
Link to minimal reproduction
https://github.com/Ericlm/reka-select-multiple-required
Steps to reproduce
- Creating a Select with
multiple and required on the SelectRoot, within a form
- Add 2-3
SelectItem, and a submit button
- When triggering the
submit :
- If no item selected : ask to select one 👍
- One item selected : submit 👍
- If more than one item : ask to select one 🐛
Describe the bug
multiple with required props on a SelectRoot make submitting more than one element impossible.
Expected behavior
When the multiple and required props are set on a SelectRoot, the value should only be required if there is no item in the array, but should submit when there is at least one.
Context & Screenshots (if applicable)
No response
Environment
Link to minimal reproduction
https://github.com/Ericlm/reka-select-multiple-required
Steps to reproduce
multipleandrequiredon theSelectRoot, within aformSelectItem, and asubmitbuttonsubmit:Describe the bug
multiplewithrequiredprops on aSelectRootmake submitting more than one element impossible.Expected behavior
When the
multipleandrequiredprops are set on aSelectRoot, the value should only be required if there is no item in the array, but should submit when there is at least one.Context & Screenshots (if applicable)
No response