-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BUG] - TimeInput nextJS hydration issue. #2911
Labels
Comments
exotexot
changed the title
[BUG] - TimeInput doesn't work with react-hook-form.
[BUG] - TimeInput nextJS hydration issue.
Apr 29, 2024
@exotexot what does this |
Closing due to inactivity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NextUI Version
2.3.6
Describe the bug
Hello,
I wanna use TimeInput, with react-hook-form and zod validation.
I do get an hydration error:
Here's my code
When I open the page, It immediately shows the error message of the TimeINput field, "Please enter a valid time" - even though I didn't make an input, and I should just hold the new Time() element defined int the inputs controller node.
Also the "errorMessage" is always showing when the prop is set - idenpendent of the isInvalid flag.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
No hydration warning
Screenshots or Videos
No response
Operating System Version
macOS
Browser
Safari
The text was updated successfully, but these errors were encountered: