Skip to content

Commit

Permalink
fix(combobox): force reset highlight when children changed
Browse files Browse the repository at this point in the history
  • Loading branch information
erm1116 committed Sep 11, 2024
1 parent 2f38826 commit 55dbb6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/machines/combobox/src/combobox.machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ export function machine<T extends CollectionItem>(userContext: UserDefinedContex
highlightFirstItem(ctx) {
raf(() => {
const value = ctx.collection.firstValue
set.highlightedValue(ctx, value)
set.highlightedValue(ctx, value, true)
})
},
highlightFirstItemIfNeeded(ctx) {
Expand Down

0 comments on commit 55dbb6c

Please sign in to comment.