Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐞] [Combobox] - Issues with Combobox in a Qwik Form #1055

Open
jcfauchet opened this issue Mar 10, 2025 · 0 comments
Open

[🐞] [Combobox] - Issues with Combobox in a Qwik Form #1055

jcfauchet opened this issue Mar 10, 2025 · 0 comments
Labels
STATUS-1: needs triage This doesn't seem right TYPE: bug Something isn't working

Comments

@jcfauchet
Copy link

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

  1. Run pnpm i and pnpm run dev.
  2. In the first combobox, select two options.
  3. Leave the second combobox as is (with a pre-selected value).
  4. 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

@jcfauchet jcfauchet added STATUS-1: needs triage This doesn't seem right TYPE: bug Something isn't working labels Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STATUS-1: needs triage This doesn't seem right TYPE: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant