From 5824f9886f3fbd41d2ff434fe6ea1d7defb5165b Mon Sep 17 00:00:00 2001 From: Sadegh Barati Date: Sat, 9 Mar 2024 20:33:14 +0330 Subject: [PATCH] fix: unable to close `Combobox` with esc key --- apps/www/src/lib/registry/default/ui/command/CommandList.vue | 4 +++- apps/www/src/lib/registry/new-york/ui/command/CommandList.vue | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/www/src/lib/registry/default/ui/command/CommandList.vue b/apps/www/src/lib/registry/default/ui/command/CommandList.vue index 710d0bc5..00d1b3a7 100644 --- a/apps/www/src/lib/registry/default/ui/command/CommandList.vue +++ b/apps/www/src/lib/registry/default/ui/command/CommandList.vue @@ -4,7 +4,9 @@ import type { ComboboxContentEmits, ComboboxContentProps } from 'radix-vue' import { ComboboxContent, useForwardPropsEmits } from 'radix-vue' import { cn } from '@/lib/utils' -const props = defineProps() +const props = withDefaults(defineProps(), { + dismissable: false, +}) const emits = defineEmits() const delegatedProps = computed(() => { diff --git a/apps/www/src/lib/registry/new-york/ui/command/CommandList.vue b/apps/www/src/lib/registry/new-york/ui/command/CommandList.vue index 710d0bc5..00d1b3a7 100644 --- a/apps/www/src/lib/registry/new-york/ui/command/CommandList.vue +++ b/apps/www/src/lib/registry/new-york/ui/command/CommandList.vue @@ -4,7 +4,9 @@ import type { ComboboxContentEmits, ComboboxContentProps } from 'radix-vue' import { ComboboxContent, useForwardPropsEmits } from 'radix-vue' import { cn } from '@/lib/utils' -const props = defineProps() +const props = withDefaults(defineProps(), { + dismissable: false, +}) const emits = defineEmits() const delegatedProps = computed(() => {