-
Notifications
You must be signed in to change notification settings - Fork 148
Description
Which package is affected?
Headless Kit
Describe the bug
Hi there,
I've encountered two distinct issues when using a combobox in a Qwik form:
When using a multiple combobox, only the last selected value is sent to the action instead of all selected values.
When pre-selecting an option in a single combobox, the value is not sent to routeAction$ unless a new selection is made.
Reproduction
https://github.com/jcfauchet/repro-qwik-ui
Steps to reproduce
- Run
pnpm iandpnpm run dev. - In the first combobox, select two options.
- Leave the second combobox as is (with a pre-selected value).
- Submit the form and check the logs in the terminal
Expected behavior:
The first combobox should return both selected values.
The second combobox should return its pre-selected value.
Actual behavior:
Only one value is returned for the first combobox (the last selected one).
No value is returned for the second combobox.
I'm not sure if I'm missing something or if I'm doing something wrong. Any help would be appreciated!
Let me know if you need more details!
System Info
"@qwik-ui/headless": "^0.6.5",Additional Information
No response