You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Conditional rendering is not working for accordion tabs #1458
In the above code sandbox if we add condition to accordion tabs, for example if a form accordion tab should be visible only if form value present in another Accordion tab is true or has some value, then the conditions don't work and the accordion tab is always visible.
Schema
<If it's possible, please provide a schema which reproduces the issue>
Hey, if I understand your issue correctly, then I think the issue is here:
When you render tab components, there is actually no data driven from component (so no condition is calculated), but you render directly children of the component. You can wrap this section to a new component in the mapper and then just do formOptions.renderForm(fields)
Activity
adityapatil9191 commentedon May 10, 2024
Please help / respond
rvsia commentedon May 10, 2024
Hey, if I understand your issue correctly, then I think the issue is here:
When you render tab components, there is actually no data driven from component (so no condition is calculated), but you render directly children of the component. You can wrap this section to a new component in the mapper and then just do
formOptions.renderForm(fields)