Skip to content

[SELECT] Can't find a way to get select values #183

Description

@LiteBluSky

I hit a dead end again with the select component...

I want to display labels and validate values!
As I've read in the docs, zod validates the labels, is there a workaround for this usecase?

country: z
      .nativeEnum(
        regions.reduce(
          (acc, region) => {
            acc[region.code] = region.displayName;
            return acc;
          },
          {} as Record<string, string>,
        ),
      )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions