Make newNotes state consistent in RecruitmentInterviewNotesForm #1767
Labels
difficulty: advanced
Difficult and time consuming task.
frontend
Task related to frontend.
priority: high
recruitment
Task related to the recruitment system
refactor
Clean up code without changing functionality
Fil:RecruitmentInterviewNotesForm.tsx
KODE:
"
field.onBlur(); // Call the default onBlur handler from react-hook-form|
handleNotesChange(newNotes.target.value); // Call your custom function on blur
"
Mathias-a:
"
Dette er nok ikke helt din skyld, men tror jeg hadde foretrukket (om mulig) at vi ikke forholdt oss til "newNotes", men heller bare forholdt oss til verdien til feltet i formet. Vet ikke om det funker med conditional rendering?
"
Suggestion: Use the inherit state from zod in the form. Zod keeps track of the value in the field, should be able to use this
The text was updated successfully, but these errors were encountered: