Skip to content

Commit 4156c45

Browse files
committed
Fix Combobox activeOption render prop (#2973)
* Fix Combobox `activeOption` render prop * Update changelog
1 parent 25ba013 commit 4156c45

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/@headlessui-vue/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
- Fix Combobox `activeOption` render prop ([#2973](https://github.com/tailwindlabs/headlessui/pull/2973))
11+
12+
## [1.7.18] - 2024-02-02
13+
1014
### Added
1115

1216
- Add `immediate` prop to `<Combobox />` for immediately opening the Combobox when the `input` receives focus ([#2686](https://github.com/tailwindlabs/headlessui/pull/2686))

packages/@headlessui-vue/src/components/combobox/combobox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ export let Combobox = defineComponent({
718718
? null
719719
: api.virtual.value
720720
? api.virtual.value.options[api.activeOptionIndex.value ?? 0]
721-
: api.options.value[api.activeOptionIndex.value]?.dataRef.value.value ?? null,
721+
: api.options.value[api.activeOptionIndex.value]?.dataRef.value ?? null,
722722
value: value.value,
723723
}
724724

0 commit comments

Comments
 (0)