From 28924636bfcb32ee1540e0f01f7eaa9d3f69eb8e Mon Sep 17 00:00:00 2001 From: romanhrynevych Date: Fri, 10 May 2024 09:54:55 +0300 Subject: [PATCH] fix: update default modelValue for Pin input --- apps/www/src/lib/registry/default/ui/pin-input/PinInput.vue | 4 +++- apps/www/src/lib/registry/new-york/ui/pin-input/PinInput.vue | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/www/src/lib/registry/default/ui/pin-input/PinInput.vue b/apps/www/src/lib/registry/default/ui/pin-input/PinInput.vue index 9a5edb97..a79c3af5 100644 --- a/apps/www/src/lib/registry/default/ui/pin-input/PinInput.vue +++ b/apps/www/src/lib/registry/default/ui/pin-input/PinInput.vue @@ -3,7 +3,9 @@ import { type HTMLAttributes, computed } from 'vue' import { PinInputRoot, type PinInputRootEmits, type PinInputRootProps, useForwardPropsEmits } from 'radix-vue' import { cn } from '@/lib/utils' -const props = defineProps() +const props = withDefaults(defineProps(), { + modelValue: () => [], +}) const emits = defineEmits() const delegatedProps = computed(() => { diff --git a/apps/www/src/lib/registry/new-york/ui/pin-input/PinInput.vue b/apps/www/src/lib/registry/new-york/ui/pin-input/PinInput.vue index 9a5edb97..a79c3af5 100644 --- a/apps/www/src/lib/registry/new-york/ui/pin-input/PinInput.vue +++ b/apps/www/src/lib/registry/new-york/ui/pin-input/PinInput.vue @@ -3,7 +3,9 @@ import { type HTMLAttributes, computed } from 'vue' import { PinInputRoot, type PinInputRootEmits, type PinInputRootProps, useForwardPropsEmits } from 'radix-vue' import { cn } from '@/lib/utils' -const props = defineProps() +const props = withDefaults(defineProps(), { + modelValue: () => [], +}) const emits = defineEmits() const delegatedProps = computed(() => {