Tabs/Accordion not working in Layout Paragraphs while creation

Created on 16 August 2021, over 3 years ago
Updated 2 February 2023, about 2 years ago

Ajax error while saving accordion/tab paragraph type. The paragraph--drowl-paragraphs-types--container-tabs-accordion.html.twig (wrapper) requires fields from the sub-paragraph (=> Single Tab/Accordion), using twig_tweaks

drupal_field('field_paragraphs_title', 'paragraph', item.target_id)

However, item.target_id is not available while creation (NULL), so Twig Tweak fails on getting the fields.

So we show just a very basic text-preview instead the real accordion.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024