When rendering a form with display 'wizard' the current page will now be kept after language is changed.
Why have you chosen this solution?
After upgrading to the most recent version of formio.js we saw that when a form was rendered with display 'wizard' the current page was reset to zero after changing the language. Prior to https://github.com/formio/formio.js/pull/5176 (which changed the implementation of 'set language' to invoke rebuild instead of redraw) this did not happen.
Breaking Changes / Backwards Compatibility
This is a breaking change if someone expects the form with display 'wizard' to reset current page to zero when the form is rebuilt.
Dependencies
N/A
How has this PR been tested?
Unit test, and in my team's application using formio.js.
Checklist:
[x] I have completed the above PR template
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation (if applicable)
[x] My changes generate no new warnings
[x] My changes include tests that prove my fix is effective (or that my feature works as intended)
[x] New and existing unit/integration tests pass locally with my changes
[ ] Any dependent changes have corresponding PRs that are listed above
Link to Jira Ticket
N/A
Description
What changed?
When rendering a form with display 'wizard' the current page will now be kept after language is changed.
Why have you chosen this solution?
After upgrading to the most recent version of formio.js we saw that when a form was rendered with display 'wizard' the current page was reset to zero after changing the language. Prior to https://github.com/formio/formio.js/pull/5176 (which changed the implementation of 'set language' to invoke rebuild instead of redraw) this did not happen.
Breaking Changes / Backwards Compatibility
This is a breaking change if someone expects the form with display 'wizard' to reset current page to zero when the form is rebuilt.
Dependencies
N/A
How has this PR been tested?
Unit test, and in my team's application using formio.js.
Checklist: