Skip to content

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

@jcfauchet

Description

@jcfauchet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions