React Hook Form: Number Input not respecting Min/Max values
Have some dynamic min/max values that I get from a trpc endpoint so I can't just define min/max values in my zod schema
For some reason, I can't get number inputs to honor the min/max defined within the register params.
https://codesandbox.io/s/sharp-wilson-578ie6?file=/src/App.tsx
Any help/advice would be appreciated
1 Reply
you should be able to define them in your zod schema still just create the zod schema in the component