Skip to content

Commit

Permalink
Fix Combobox activeOption render prop (#2973)
Browse files Browse the repository at this point in the history
* Fix Combobox `activeOption` render prop

* Update changelog
  • Loading branch information
reinink committed Feb 7, 2024
1 parent 25ba013 commit 4156c45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/@headlessui-vue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- Fix Combobox `activeOption` render prop ([#2973](https://github.com/tailwindlabs/headlessui/pull/2973))

## [1.7.18] - 2024-02-02

### Added

- Add `immediate` prop to `<Combobox />` for immediately opening the Combobox when the `input` receives focus ([#2686](https://github.com/tailwindlabs/headlessui/pull/2686))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ export let Combobox = defineComponent({
? null
: api.virtual.value
? api.virtual.value.options[api.activeOptionIndex.value ?? 0]
: api.options.value[api.activeOptionIndex.value]?.dataRef.value.value ?? null,
: api.options.value[api.activeOptionIndex.value]?.dataRef.value ?? null,
value: value.value,
}

Expand Down

0 comments on commit 4156c45

Please sign in to comment.