Skip to content

[bug]: cannot unselect combobox options for the form example in docs #7353

@tonghohin

Description

@tonghohin

Describe the bug

For the combobox form example in the docs, after selecting an option, it's expected to unselect the option by clicking it again, but it doesn't work like this now.

Affected component/components

Combobox

How to reproduce

  1. Go to the form example at https://ui.shadcn.com/docs/components/combobox#form
  2. Select English
  3. Click English again, then nothing happens

Codesandbox/StackBlitz link

No response

Logs

System Info

Mac Safari

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions