Skip to content

[Bug]: Combobox breaks when selecting a value using the keyboard #3595

Open
@velopsey

Description

@velopsey

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v2.2.0

What browser are you using?

All

Reproduction URL

https://stackblitz.com/edit/vitejs-vite-coiqswwa?file=src%2FApp.jsx

Describe your issue

When selecting a value using the mouse, the combobox functions as expected. However, if a value is selected using the keyboard (via the Enter key), the programmatic reset no longer works as intended.

CleanShot.2024-12-14.at.14.11.46.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions