fix: server edit dialog submit button unresponsive after first save (#1132)

Upgrade react-hook-form 7.63→7.71 to fix form.reset() race condition
that silently broke zod validation on subsequent submissions.

Reset form and public-note state (publicNoteObj/Raw/Mode/Errors)
from latest data when the edit dialog opens, preventing stale state
from a previous edit session.
This commit is contained in:
naiba
2026-02-14 12:11:47 +08:00
parent ff231da753
commit 84ba33dac3
3 changed files with 6076 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@
"react": "^19.2.0",
"react-day-picker": "^9.11.1",
"react-dom": "^19.2.0",
"react-hook-form": "^7.64.0",
"react-hook-form": "^7.71.1",
"react-i18next": "^16.0.0",
"react-router-dom": "^7.9.4",
"react-virtuoso": "^4.14.1",