Skip to content

Commit a66ae73

Browse files
committedDec 13, 2024·
bug #6648 Fix Fieldset collapse with new suffix. (WedgeSama)
This PR was merged into the 4.x branch. Discussion ---------- Fix Fieldset collapse with new suffix. Fix fieldset collapsing that do not use the right property to create the `id` HTML attribute. #6555 (comment) Commits ------- 4969c7e Fix Fieldset collapse with new suffix. #6555 (comment)
2 parents 150e6cb + 4969c7e commit a66ae73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎templates/crud/detail.html.twig

+3-3
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@
234234
{% endset %}
235235

236236
{% if is_collapsible %}
237-
<a href="#content-{{ field.property }}" data-bs-toggle="collapse"
237+
<a href="#content-{{ field.propertyNameWithSuffix }}" data-bs-toggle="collapse"
238238
class="form-fieldset-title-content form-fieldset-collapse {{ is_collapsed ? 'collapsed' }}"
239-
aria-expanded="{{ is_collapsed ? 'false' : 'true' }}" aria-controls="content-{{ field.property }}">
239+
aria-expanded="{{ is_collapsed ? 'false' : 'true' }}" aria-controls="content-{{ field.propertyNameWithSuffix }}">
240240
{{ fieldset_title_contents|raw }}
241241
</a>
242242
{% else %}
@@ -252,7 +252,7 @@
252252
</div>
253253
{% endif %}
254254

255-
<div id="content-{{ field.property }}" class="form-fieldset-body {{ not fieldset_has_header ? 'without-header' }} {{ is_collapsible ? 'collapse' }} {{ not is_collapsed ? 'show'}}">
255+
<div id="content-{{ field.propertyNameWithSuffix }}" class="form-fieldset-body {{ not fieldset_has_header ? 'without-header' }} {{ is_collapsible ? 'collapse' }} {{ not is_collapsed ? 'show'}}">
256256
<div class="row">
257257
{% endmacro %}
258258

0 commit comments

Comments
 (0)
Please sign in to comment.