Skip to content

[Bug]: Select with multiple and required won't work with more than one item #1872

@Ericlm

Description

@Ericlm

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

  1. Creating a Select with multiple and required on the SelectRoot, within a form
  2. Add 2-3 SelectItem, and a submit button
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions