Replies: 1 comment
-
Instead of spreading <Input
value={field.value}
onChange={field.onChange}
onBlur={field.onBlur}
name={field.name}
ref={field.ref}
placeholder="Name"
/> This gives React Hook Form full control over the input and prevents stale references or shared state between fields. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When removing the 1st dynamically added input field in the "Worker Management" section, the remaining input fields become non-editable and also typing inside the remaining fields can sometimes lead to their values being unexpectedly updated or synchronized with previously entered values.
Code Snippet (Relevant Part):
simplescreenrecorder-2025-04-08_19.34.41.mp4
Much appreciated for the help thanks!🫰
Beta Was this translation helpful? Give feedback.
All reactions