-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Version Number
1.8.0
Codesandbox/Expo snack
https://codesandbox.io/s/react-ts-form-example-forked-38ykmt?file=/src/App.tsx
Steps to reproduce
- Click submit without checking a checkbox
- Data is being logged
- Check a checkbox,
no erroris still visible although the validation should fail (due touuid()) - Click submit, data is not being logged
The issue is that errors coming from zod don't seem to surface into the error coming from useTsController(). The submit is disabled correctly but no error can be shown.
If you remove the uuid() part the submit works fine.
Expected behaviour
Array schema validation errors should also surface when using useTsController inside a field component.
Maybe I'm just doing something wrong but the codesandbox and my local solution provide just the same output where the error is never changed on actual falsy inputs.
Relevant log output
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels