Skip to content

Commit 2c673f5

Browse files
committed
fix(CommandPalette): override of closeButton and emptyState props
1 parent 192b0e6 commit 2c673f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/runtime/components/navigation/CommandPalette.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<UButton
2222
v-if="closeButton"
23-
v-bind="closeButton"
23+
v-bind="{ ...ui.default.closeButton, ...closeButton }"
2424
:class="ui.input.closeButton"
2525
aria-label="Close"
2626
@click="onClear"
@@ -280,6 +280,8 @@ export default defineComponent({
280280
)
281281
})
282282
283+
const emptyState = computed(() => ({ ...ui.value.default.emptyState, ...props.emptyState }))
284+
283285
// Methods
284286
285287
function activateFirstOption () {
@@ -327,6 +329,8 @@ export default defineComponent({
327329
query,
328330
iconName,
329331
iconClass,
332+
// eslint-disable-next-line vue/no-dupe-keys
333+
emptyState,
330334
onSelect,
331335
onClear
332336
}

0 commit comments

Comments
 (0)