Skip to content
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

using invalid data does not cause conform to halt for zod schema #831

Open
lifeiscontent opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@lifeiscontent
Copy link
Contributor

Describe the bug and the expected behavior

when typing in "-+200" to a <input type="number" />

with a schema that looks like this:

limit: z.number().int().min(1).max(100).default(100)

conform parses this value as "" instead of not allowing it

Conform version

v1.2.2

Steps to Reproduce the Bug or Issue

already provided above

What browsers are you seeing the problem on?

No response

Screenshots or Videos

No response

Additional context

No response

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