shadcn-vue
shadcn-vue copied to clipboard
[Bug]: Autoform doesn't preprocess enums properly
Reproduction
https://gist.github.com/marr/fd74158b1ce07b299584520eb01f01fd
Describe the bug
The z.enum type appears to not resolve correctly when using preprocess. The value set in initialValues should be resolved to whatever is returned from the preprocess function. I see the value in the form, but it fails to match anything defined in the enum.
System Info
.
Contributes
- [x] I am willing to submit a PR to fix this issue
- [ ] I am willing to submit a PR with failing tests