From 9b4b0c289e2f53177329931552e07b61c845aa5d Mon Sep 17 00:00:00 2001 From: zernonia Date: Fri, 6 Oct 2023 13:23:49 +0800 Subject: [PATCH] chore: fix demo reactivitiy --- apps/www/src/content/docs/components/combobox.md | 4 ++-- .../lib/registry/default/example/ComboboxForm.vue | 12 ++++++------ .../lib/registry/default/example/ComboboxPopover.vue | 10 +++++----- .../lib/registry/new-york/example/ComboboxForm.vue | 12 ++++++------ .../registry/new-york/example/ComboboxPopover.vue | 10 +++++----- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/apps/www/src/content/docs/components/combobox.md b/apps/www/src/content/docs/components/combobox.md index 8f909099..122c9ca1 100644 --- a/apps/www/src/content/docs/components/combobox.md +++ b/apps/www/src/content/docs/components/combobox.md @@ -96,9 +96,9 @@ const value = ref({}) -### Dropdown menu + ### Form diff --git a/apps/www/src/lib/registry/default/example/ComboboxForm.vue b/apps/www/src/lib/registry/default/example/ComboboxForm.vue index 8080fd4f..d4981802 100644 --- a/apps/www/src/lib/registry/default/example/ComboboxForm.vue +++ b/apps/www/src/lib/registry/default/example/ComboboxForm.vue @@ -45,7 +45,7 @@ const formSchema = toTypedSchema(z.object({ }), })) -const { handleSubmit, setValues } = useForm({ +const { handleSubmit, setValues, values } = useForm({ validationSchema: formSchema, }) @@ -56,7 +56,7 @@ const onSubmit = handleSubmit((values) => {