Skip to content

Commit

Permalink
fix(CommandPalette): put back cursor on top only when query changes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Feb 1, 2023
1 parent 3558eb1 commit 5bf5a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/navigation/CommandPalette.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 5bf5a31

@vercel
Copy link

@vercel vercel bot commented on 5bf5a31 Feb 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-nuxtlabs.vercel.app
nuxthq-ui.vercel.app
ui-git-dev-nuxtlabs.vercel.app

Please sign in to comment.