Skip to content

Commit

Permalink
[BUGFIX] fix collapsible element, fix the issue with collapsed class …
Browse files Browse the repository at this point in the history
…on the a-tag
  • Loading branch information
dmh committed Oct 26, 2018
1 parent d134468 commit 0cee30e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Resources/Private/Templates/GridElements/Collapsible.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
</f:section>

<f:section name="accordionLink">
<f:link.page pageUid="#collapse-{data.uid}" absolute="1" class="{f:if(condition: data.pi_flexform.data.columns.lDEF.expanded.vDEF, then: '', else: 'collapsed')}"
additionalAttributes="{'data-toggle':'collapse', 'data-parent': '#group-{data.tx_gridelements_container}'}">{data.header}</f:link.page>
<a
role="button"
class="{f:if(condition: data.pi_flexform.data.columns.lDEF.expanded.vDEF, then: '', else: 'collapsed')}"
data-toggle="collapse"
href="#collapse-{data.uid}"
data-parent="#group-{data.tx_gridelements_container}"
aria-expanded="{f:if(condition: data.pi_flexform.data.columns.lDEF.expanded.vDEF, then: 'true', else: 'false')}">
{data.header}
</a>
</f:section>

0 comments on commit 0cee30e

Please sign in to comment.