Skip to content

Commit

Permalink
Fix Application Form: Do not allow jumping to next step if a previous…
Browse files Browse the repository at this point in the history
… step contains invalid data
  • Loading branch information
michael-markl committed Jan 22, 2025
1 parent a962016 commit 772d747
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const SteppedSubForms = ({
for (let i = 0; i < index; i++) {
if (subForms[i].validate().type === 'error') {
setActiveStep(() => i)
break
return
}
}
setActiveStep(() => index)
Expand Down

0 comments on commit 772d747

Please sign in to comment.