Skip to content

Commit

Permalink
Merge pull request #23780 from joh42/fix/21838-regression
Browse files Browse the repository at this point in the history
Corrected regression from issue 21838
  • Loading branch information
techievivek authored Aug 1, 2023
2 parents 2a8ba02 + f850a60 commit 9266cfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ function Form(props) {
setErrors(touchedInputErrors);
}

lastValidatedValues.current = values;
const isAtLeastOneInputTouched = _.keys(touchedInputs.current).length > 0;
if (isAtLeastOneInputTouched) {
lastValidatedValues.current = values;
}

return touchedInputErrors;
},
Expand Down

0 comments on commit 9266cfd

Please sign in to comment.