Skip to content

Commit

Permalink
do not reset form on validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
lovincyrus committed Dec 6, 2024
1 parent 67b017e commit 2e15de0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
superForm(defaults(initialValues, schema), {
SPA: true,
validators: schema,
resetForm: false,
// See: https://superforms.rocks/concepts/nested-data
dataType: "json",
async onUpdate({ form }) {
Expand Down Expand Up @@ -227,6 +228,7 @@
function handleEnvironmentChange() {
checkForExistingKeys();
inputErrors = {};
isKeyAlreadyExists = false;
showEnvironmentError = true;
}
Expand Down

0 comments on commit 2e15de0

Please sign in to comment.