huntabyte / bits-ui

The headless components for Svelte.
https://bits-ui.com
MIT License
953 stars 70 forks source link

Select `required` attribute is ignored #590

Open hugotox opened 2 days ago

hugotox commented 2 days ago

Describe the bug

Using the required attribute on the <Select> element is ignored, even though it is documented in bits-ui https://www.bits-ui.com/docs/components/select

Reproduction

https://stackblitz.com/edit/github-xinqrn?file=src%2Froutes%2F%2Bpage.svelte

Logs

No response

System Info

System:
    OS: macOS 13.6
    CPU: (12) arm64 Apple M2 Max
    Memory: 814.69 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.2 - ~/.volta/tools/image/node/18.18.2/bin/node
    Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
    npm: 9.8.1 - ~/.volta/tools/image/node/18.18.2/bin/npm
  Browsers:
    Chrome: 126.0.6478.127
    Edge: 126.0.2592.81
    Safari: 16.6

Severity

annoyance