diff --git a/apps/showcase/doc/select/FormDoc.vue b/apps/showcase/doc/select/FormDoc.vue index 0439ee568..0cb7099b2 100644 --- a/apps/showcase/doc/select/FormDoc.vue +++ b/apps/showcase/doc/select/FormDoc.vue @@ -33,24 +33,15 @@ export default { resolver: null, schema: z.object({ city: z.object({ - name: z - .string() - .min(1, 'City option cannot be empty.') - .refine((val) => val !== '', { - message: 'City should be selected.' - }) + name: z.string().min(1, 'City should be selected.') }) }), code: { basic: `
- - {{ $form.username.errors[0]?.message }} -
-
- - {{ $form.email.errors[0]?.message }} +