Skip to content

Commit

Permalink
Merge pull request #1148 from creative-commoners/pulls/5.12/bug-previ…
Browse files Browse the repository at this point in the history
…ous-form-step

FIX Not working previous form step if there is more than one hidden page
  • Loading branch information
GuySartorelli authored May 25, 2022
2 parents 6826489 + 0c066a3 commit 52804b0
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/userforms.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions client/src/bundles/UserForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,9 @@ jQuery(document).ready(($) => {
// hidden by custom display rules. If it is then jump to the next step.
if (targetStep.conditionallyHidden()) {
if (forward) {
this.jumpToStep(stepNumber + 1);
this.jumpToStep(stepNumber + 1, direction);
} else {
this.jumpToStep(stepNumber - 1);
this.jumpToStep(stepNumber - 1, direction);
}

return;
Expand Down
Loading

0 comments on commit 52804b0

Please sign in to comment.