Paragraphs Modal widget switches to default tab

Created on 13 December 2023, 12 months ago
Updated 18 December 2023, 11 months ago

Problem/Motivation

See the attached screen recording.

Steps to reproduce

  1. Drupal 10, claro admin theme
  2. Paragraphs field configured on a node type with the "stable" widget and the "Modal" add form on Manage Form Display.
  3. Field Group module configured with Tabs (either vertical or horizontal) and the Paragraphs field placed inside any secondary Tab (ie, not the first default tab).
  4. Go to node edit form switch to the correct tab, then click the "Add Paragraph" button.

Expected result:
The modal opens, you select a paragraph type. The modal closes and you're taken back to the active tab and see the paragraph added.

Actual result:
The field group tab switches back to the default Tab. The modal opens, you select a paragraph type. The modal closes and you're taken to the default (first) tab instead of the active tab, and you cannot see the paragraph that was added.

Proposed resolution

Fix Paragraphs modal widget integration with Field Group Tabs.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

User interface

Created by

🇪🇨Ecuador jwilson3

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

Comments & Activities

  • Issue created by @jwilson3
  • 🇮🇳India gkaurkalra

    I am facing the same issue when adding any paragraph, though in my case, last tab is getting opened every time I choose some paragraph.

  • 🇫🇷France cutesquirrel

    Hi,
    since I've switched to claro theme, I've the same issue, even with tabs/tab (and not modal)
    on the second tab, I add a new paragraph and I'm back to the default first tab.
    Did you find any fix or workaround?

Production build 0.71.5 2024