Skip to content

[combobox] Item with a label inside of it will cause a double click #3646

@michaelhazan

Description

@michaelhazan

Bug report

Current behavior

Currently if a Combobox.Item has a label inside of it, clicking the label will make the Combobox.Item onClick function to run twice, causing it to select, and then deselect the item.

Expected behavior

To not double click and select the item as usual.

Reproducible example

https://stackblitz.com/edit/wmpqteut?file=index.html

Base UI version

v1.0.0

Which browser are you using?

Firefox

Which OS are you using?

Mac OS

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: comboboxChanges related to the combobox component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions