diff --git a/src/runtime/components/navigation/CommandPalette.vue b/src/runtime/components/navigation/CommandPalette.vue index 6a6d2d45..2e07a37f 100644 --- a/src/runtime/components/navigation/CommandPalette.vue +++ b/src/runtime/components/navigation/CommandPalette.vue @@ -183,7 +183,7 @@ const groups = computed(() => map(groupBy(results.value, command => command.item } as Group })) -watch(groups, () => { +watch(query, () => { // Select first item on search changes setTimeout(() => { // https://github.com/tailwindlabs/headlessui/blob/6fa6074cd5d3a96f78a2d965392aa44101f5eede/packages/%40headlessui-vue/src/components/combobox/combobox.ts#L804