Skip to content

[🐞] modular-forms validation failed on Combobox if selecting the last option after having selected another option before #1186

Description

@syrfmy

Which package is affected?

Headless Kit

Describe the bug

While looking at issue #1171, I found that Combobox validation also suffers from the same bug. You can look at the official Combobox validation example; if you select an initial option and then select the last option in the list.

recording.2.webm

Reproduction

https://qwikui.com/docs/headless/combobox/#validation

Steps to reproduce

  • Go to the Combobox validation example.
  • Select any option first.
  • Then select the last option and try to submit the form. You will get a validation error as if it was empty.

System Info

Firefox

Additional Information

This issue is related to #1171 because the logic for option selection for Select and Combobox is not that much different

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