You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's take the example from the docs > headless > select > uncontrolled
exportdefaultcomponent$(()=>{useStyles$(styles);constusers=['Tim','Ryan','Jim','Jessie','Abby'];return(<Select.Rootvalue="Jessie"class="select"><Select.Label>Loggedinusers</Select.Label><Select.Triggerclass="select-trigger"><Select.DisplayValueplaceholder="Select an option"/></Select.Trigger><Select.Popoverclass="select-popover">{users.map((user)=>(<Select.Itemkey={user}><Select.ItemLabel>{user}</Select.ItemLabel></Select.Item>))}</Select.Popover></Select.Root>);});
If I change the initial value to "Tim" meaning the first from the users, it will display the placeholder "Select an option".
This only occur when the first item from the users array is used.
steffanek
changed the title
[🐞] When initial value chosen is the first one from the options array, the placeholder is then displayed
[🐞] When the initially selected value is the first item in the options array, the placeholder is displayed instead.
Oct 30, 2024
Which package is affected?
Headless Kit
Describe the bug
Let's take the example from the
docs > headless > select > uncontrolled
If I change the initial value to "Tim" meaning the first from the users, it will display the placeholder "Select an option".
This only occur when the first item from the users array is used.
Reproduction
@qwik-ui: apps > website > src > routes > docs > headless > select > uncontrolled
Steps to reproduce
No response
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: