Skip to content

Commit

Permalink
fix(CommandPalette): options priority
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jul 17, 2022
1 parent 4eb4b65 commit 76ffbf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/navigation/CommandPalette.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ onMounted(() => {
activateFirstOption()
})
const options: ComputedRef<Partial<UseFuseOptions<Command>>> = computed(() => defu({}, {
const options: ComputedRef<Partial<UseFuseOptions<Command>>> = computed(() => defu({}, props.options, {
fuseOptions: {
keys: ['label']
},
resultLimit: 12,
matchAllWhenSearchEmpty: true
}, props.options))
}))
const fuse = props.groups.reduce((acc, group) => {
const fuse = useFuse(query, group.commands, defu({}, group.options || {}, options.value))
Expand Down

0 comments on commit 76ffbf4

Please sign in to comment.