Skip to content
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

Make newNotes state consistent in RecruitmentInterviewNotesForm #1767

Open
Erichseen opened this issue Mar 20, 2025 · 0 comments
Open

Make newNotes state consistent in RecruitmentInterviewNotesForm #1767

Erichseen opened this issue Mar 20, 2025 · 0 comments

Comments

@Erichseen
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant