Skip to content

Combobox only resets on blur when context is open #638

@DavidBrieden

Description

@DavidBrieden

Describe the bug
Usually when you search in a Combobox and hit escape or just unfocus the field the input value gets reset. This works if the combobox is open, but when you search for something that isn't an option this behavior changes, and the input does not get reset.

To Reproduce
Steps to reproduce the behavior:

  • Goto https://kobalte.dev/docs/core/components/combobox#example
  • if you search for "Ban" the list will show the option "Banana", and after a blur (or pressing escape) the input gets deleted.
  • if you search for "Ban3" the list will close, and after a blur (or pressing escape) nothing happens.

Expected behavior
I expected that even if no option was found, the value would reset. Or is this intentional behavior and not a bug?

Screenshots
I've added a short video.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Firefox
  • Version: 144
firefox_mWO2QXCNPJ.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