TanStack Form + Zod: Type error with enum default values in onChange validator
onChange validator.Schema:
Form usage:
Type error:
What I need:
1. Use Zod schema directly in onChange validator (no manual parsing) - so I can have field level errors
2. Keep typed default values for child forms
The beverage field has a default value but isn't optional - should TanStack Form handle this automatically? How can I resolve this type mismatch while maintaining the schema structure? Here is a reproduction repo: https://github.com/snigdha920/tanstack-zod/tree/main