-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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] - NextUI Input Field Value Disappears on Mouse Hover When Using React Hook Form #3678
Comments
@wingkwong The Select component has a similar problem. |
Reopening this issue. The linked PR has been rollbacked. |
20240906-104151.mp4My code repository nextui-bug has been updated. I now suspect that Radio and Checkbox components also have similar problems. |
may need to check all input based components once |
I believe this is also an issue when using useForm({values}) which can be delayed and then synced to the inputs later (on promise resolution with API for instance). |
same issue here, nextui version 2.4.8 |
@MikhailMarczal can you explain how to use controller |
I noticed it says "Fixed by #3533". This is not fixed. |
let's track in #3436 from now on. |
NextUI Version
2.4.6
Describe the bug
When using NextUI's Input component with React Hook Form, the input field value disappears upon mouse hover after setting the value programmatically with setValue.
Your Example Website or App
https://github.com/iGmainC/nextui-bug
Steps to Reproduce the Bug or Issue
Create a React component using Next.js, NextUI, and React Hook Form.
Set up a simple form with two input fields: name and password.
Add a button that, when clicked, sets the name field value to "root" using React Hook Form's setValue method.
Hover over the input field after clicking the button.
Expected behavior
The input field should retain the value "root" when hovering over it.
Screenshots or Videos
QQ2024823-1528.mp4
Operating System Version
linux
Browser
Chrome
The text was updated successfully, but these errors were encountered: