formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.86k stars 1.05k forks source link

Wizard: Keep current page after language is changed #5463

Closed akgagnat closed 7 months ago

akgagnat commented 7 months ago

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:

travist commented 7 months ago

Looks great! Thank you for your contribution!