Skip to content

Commit

Permalink
fix(CommandPalette): prevent shortcuts to disappear on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Oct 24, 2022
1 parent ec9f670 commit f87252f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/navigation/CommandPaletteGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</div>
<Icon v-if="selected" name="heroicons-outline:check" class="h-5 w-5 u-text-gray-900 flex-shrink-0" aria-hidden="true" />
<slot v-else-if="active" :name="`${group.key}-active`" :group="group" :command="command">
<slot v-else-if="active && (group.active || $slots[`${group.key}-active`])" :name="`${group.key}-active`" :group="group" :command="command">
<span v-if="group.active" class="flex-shrink-0 u-text-gray-500">{{ group.active }}</span>
</slot>
<slot v-else :name="`${group.key}-inactive`" :group="group" :command="command">
Expand Down

0 comments on commit f87252f

Please sign in to comment.