Skip to content

Combobox selects first item on blur #2932

Closed
@NilsEvers

Description

@NilsEvers

What package within Headless UI are you using?

@headlessui/vue

What version of that package are you using?

v1.7.17

What browser are you using?

Chrome

Reproduction URL

Basic example on stackblitz

Describe your issue
When a Combobox that does not already have a value is closed by clicking outside the element, the first value is selected.

Steps to reproduce:

  1. No value is yet selected in the Combobox (v-model = undefined)
  2. Open the Combobox
  3. Click outside the element to cancel the selection
  4. The first item will be selected now

If the selection is cancelled by pressing the esc key the issue does not occur.

Metadata

Metadata

Assignees

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