Skip to content

[Bug]: Autoform doesn't preprocess enums properly #3

@marr

Description

@marr

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

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions