adevinta / spark

✨ Simple, Modular & Accessible UI Components for your React Applications
https://sparkui.vercel.app
MIT License
73 stars 21 forks source link

@spark-ui/select with placeholder does not trigger onValueChange as intended #2314

Open dFegnoux opened 4 months ago

dFegnoux commented 4 months ago

Description

When I have a select with a placeholder value and I don't have a placeholder item, I expect to be able to select the first item of the select but the first item is not selected instead.

Steps to reproduce

  1. Go to stackblitz
  2. Click on the select trigger
  3. Select "item 1"
  4. See that the value is not changed

Spark Component and Version

@spark-ui/select@latest

Browser

Chromium 126.0.6478.126

Operating System

Additional Information

No response

soykje commented 2 months ago

@Powerplex In review without any related PR?

acd02 commented 1 month ago

is this issue still relevant, cc @Powerplex ?