uniforms icon indicating copy to clipboard operation
uniforms copied to clipboard

Blank field gives error even though optional

Open dwidge opened this issue 10 months ago • 0 comments

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";

dwidge avatar May 02 '24 09:05 dwidge