Skip to content

[Search]: Headers disappears when using option groups #636

@stefan-karger

Description

@stefan-karger

Describe the bug

It looks like the filtering/searching is broken when you use a combobox with option groups:
https://kobalte.dev/docs/core/components/combobox#using-option-groups
If I start typing only the first entry (the "fruit" heading) gets removed and after that nothing changes no matter what I enter.

Image

To Reproduce

  1. Go to https://kobalte.dev/docs/core/components/combobox/#using-option-groups
  2. Type in anything that can be found like "Banana"
  3. Delete the search string
  4. The header "Fruits" is now missing and won't show up again until the page is refreshed

Expected behavior

Clearing the search string should always show all options and groups

Screenshots

20250625-1413-50.3598375.mp4

Video showcasing the bug inside a SolidUI test repo:
https://github.com/stefan-karger/kobalte-search-test/

But it also can be seen directly in the kobalte docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions