From 55dbb6cb3d1a1c02dae9edfebd08ee829277f8c9 Mon Sep 17 00:00:00 2001 From: erm1116 Date: Wed, 11 Sep 2024 11:25:34 +0900 Subject: [PATCH] fix(combobox): force reset highlight when children changed --- packages/machines/combobox/src/combobox.machine.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/machines/combobox/src/combobox.machine.ts b/packages/machines/combobox/src/combobox.machine.ts index 841d96100c..333ba37c9a 100644 --- a/packages/machines/combobox/src/combobox.machine.ts +++ b/packages/machines/combobox/src/combobox.machine.ts @@ -792,7 +792,7 @@ export function machine(userContext: UserDefinedContex highlightFirstItem(ctx) { raf(() => { const value = ctx.collection.firstValue - set.highlightedValue(ctx, value) + set.highlightedValue(ctx, value, true) }) }, highlightFirstItemIfNeeded(ctx) {