Skip to content

Commit

Permalink
fix(CommandPalette): override of closeButton and emptyState props
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jun 1, 2023
1 parent 192b0e6 commit 2c673f5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/runtime/components/navigation/CommandPalette.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<UButton
v-if="closeButton"
v-bind="closeButton"
v-bind="{ ...ui.default.closeButton, ...closeButton }"
:class="ui.input.closeButton"
aria-label="Close"
@click="onClear"
Expand Down Expand Up @@ -280,6 +280,8 @@ export default defineComponent({
)
})
const emptyState = computed(() => ({ ...ui.value.default.emptyState, ...props.emptyState }))
// Methods
function activateFirstOption () {
Expand Down Expand Up @@ -327,6 +329,8 @@ export default defineComponent({
query,
iconName,
iconClass,
// eslint-disable-next-line vue/no-dupe-keys
emptyState,
onSelect,
onClear
}
Expand Down

1 comment on commit 2c673f5

@vercel
Copy link

@vercel vercel bot commented on 2c673f5 Jun 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
ui-git-dev-nuxtlabs.vercel.app
ui.nuxtlabs.com

Please sign in to comment.