Skip to content
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

fix: only add accordion toggle trigger if in subTables #9

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Resources/views/tailwind_2/_table.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,12 @@
</tr>
{% endif %}
{% for row in table.rows %}
{% set subTables = table.getSubTables(row) %}
{% set subTableStimulusAction = subTables ? stimulus_action('araise/table-bundle/accordion', 'toggle', 'click') : '' %}
<tr class="whatwedo_table-row hover:bg-neutral-100 transition duration-500 color align-top"
{{ stimulus_action('araise/table-bundle/accordion', 'toggle', 'click') }}
{{ subTableStimulusAction }}
aria-expanded="false"
>
{% set subTables = table.getSubTables(row) %}
{% if table.hasBatchActions() and table.getOption('content_visibility')['content_show_header'] %}
<td class="px-6 py-2">
<input
Expand Down
Loading