Skip to content

[feat] handle dash of input name in form builder ui #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vittxr opened this issue Mar 20, 2025 · 0 comments
Open

[feat] handle dash of input name in form builder ui #75

vittxr opened this issue Mar 20, 2025 · 0 comments

Comments

@vittxr
Copy link

vittxr commented Mar 20, 2025

Setting an input name with a dash generates an invalid Zod form schema

Image

using dash in names will generates:

const formSchema = z.object({
  map - name: z.string().min(1),
  map - farm: z.string(),
  map - vehicle: z.string(),
  map - files: z.string()
});

I think the name input in the builder UI shouldn't allow dashes or should just replace them with underlines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant