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 e6136aa commit a3ca52e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@headlessui-vue/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

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

## [1.7.18] - 2024-02-02

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,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 a3ca52e

Please sign in to comment.