vazco / uniforms

A React library for building forms from any schema.

Home Page:https://uniforms.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blank field gives error even though optional

dwidge opened this issue · comments

commented

problem

If the schema is optional with a min length it won't accept it when you type something and then backspace it until empty again.

z.object({ text: z.string().min(1).optional() })

packages

import ZodBridge from "uniforms-bridge-zod";
import { AutoForm } from "uniforms-mui";