This PR addresses an issue in the 4.x versions of formio.js where this.root is undefined when the edit button of the form component is clicked in builder mode. This issue does not occur in the master branch, as it was resolved by this commit
The fix involves adding additional null checks to the root of the form component to prevent errors when this.root is undefined. This ensures that the builder mode operates as expected across all versions of the library.
How has this PR been tested?
This fix has been tested by cherry-picking the commit onto the 4.19.x branch
Checklist:
[ ] 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
[ ] 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
https://formio.atlassian.net/browse/FIO-8493
Description
This PR addresses an issue in the 4.x versions of formio.js where
this.root
isundefined
when the edit button of the form component is clicked in builder mode. This issue does not occur in the master branch, as it was resolved by this commitThe fix involves adding additional null checks to the root of the form component to prevent errors when
this.root
isundefined
. This ensures that the builder mode operates as expected across all versions of the library.How has this PR been tested?
This fix has been tested by cherry-picking the commit onto the 4.19.x branch
Checklist: