-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIO-9467: Fix rendering table component in wizard #206
FIO-9467: Fix rendering table component in wizard #206
Conversation
src/utils/formUtil/eachComponent.ts
Outdated
@@ -43,7 +43,8 @@ export function eachComponent( | |||
eachComponent(column.components, fn, includeAll, compPaths, component), | |||
); | |||
} else if (info.hasRows) { | |||
component.rows.forEach((row: any) => { | |||
const comp = component.component || component; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain this change? Is this table
component specific? If so, it might be beneficial to have a info.isTable
or something to make it explicitly clear that we have an edge case with the table
component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might actually need to revisit this, since I've noticed jumping between versions that this bug is something to do with the renderer updates, rather than core. Will put it to draft state for now
@@ -0,0 +1,92 @@ | |||
export default [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we name these files more descriptively?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@brendanbond refactored the solution, appeared to be another part of code that initially broke it |
Link to Jira Ticket
https://formio.atlassian.net/browse/FIO-9467
Description
What changed?
eachComponent
Why have you chosen this solution?
Use this section to justify your choices
Breaking Changes / Backwards Compatibility
Use this section to describe any potentially breaking changes this PR introduces or any effects this PR might have on backwards compatibility
Dependencies
Use this section to list any dependent changes/PRs in other Form.io modules
How has this PR been tested?
Automated test added
Checklist: