diff --git a/apps/www/src/lib/registry/default/example/TagsInputFormDemo.vue b/apps/www/src/lib/registry/default/example/TagsInputFormDemo.vue index 367a09e5..88766242 100644 --- a/apps/www/src/lib/registry/default/example/TagsInputFormDemo.vue +++ b/apps/www/src/lib/registry/default/example/TagsInputFormDemo.vue @@ -15,14 +15,15 @@ import { } from '@/lib/registry/default/ui/form' import { toast } from '@/lib/registry/default/ui/toast' -const modelValue = ref(['Apple', 'Banana']) - const formSchema = toTypedSchema(z.object({ fruits: z.array(z.string()).min(1).max(3), })) const { handleSubmit } = useForm({ validationSchema: formSchema, + initialValues: { + fruits: ['Apple', 'Banana'], + }, }) const onSubmit = handleSubmit((values) => { @@ -35,12 +36,12 @@ const onSubmit = handleSubmit((values) => {