Accordion item stay opened when another accordion item is opened

Created on 25 August 2023, over 1 year ago
Updated 7 September 2023, over 1 year ago

Problem/Motivation

Accordion item stay open when another accordion is opened

pattern-accordion-item.twig.php is unable to retrieve the parent accordion id to build data-bs-parent.

data-dto-parent is set on parent paragraph template, not on pattern-accordion-item

Proposed resolution

Preprocess accordion items paragraphs to pass accordion id to pattern accordion item

🐛 Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

🇫🇷France maboy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024