From e05d7250e8f193ed01a3a4f2257dd401c35ce059 Mon Sep 17 00:00:00 2001 From: Mael Date: Fri, 1 Mar 2024 12:55:43 +0100 Subject: [PATCH] Update CommandDialog.vue in new-york --- .../registry/new-york/ui/command/CommandDialog.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/apps/www/src/lib/registry/new-york/ui/command/CommandDialog.vue b/apps/www/src/lib/registry/new-york/ui/command/CommandDialog.vue index b4881ee4..773590ae 100644 --- a/apps/www/src/lib/registry/new-york/ui/command/CommandDialog.vue +++ b/apps/www/src/lib/registry/new-york/ui/command/CommandDialog.vue @@ -4,16 +4,24 @@ import type { DialogRootEmits, DialogRootProps } from 'radix-vue' import Command from './Command.vue' import { Dialog, DialogContent } from '@/lib/registry/new-york/ui/dialog' -const props = defineProps() +const props = defineProps< + DialogRootProps & { + filterFunction?: (val: Array, term: string) => Array; + } +>(); const emits = defineEmits() const forwarded = useForwardPropsEmits(props, emits) +const forwardedExceptFilterFunction = computed(() => { + const { filterFunction: _, ...rest } = forwarded.value; + return rest; +});