Multiple paragraph fields in a single content type can cause conflicting behavior in frontend

Created on 27 April 2023, almost 2 years ago
Updated 2 January 2024, over 1 year ago

Problem/Motivation

We are experiencing an interesting issue when we have two different paragraph fields in a single content type.

Basically we have a normal paragraph field where users can create different kinds of paragraphs (text, images etc.). In addition to that we have a specific paragraph field which allows users to add a single specific paragraph type to include some logos on the page.

Now it seems like this can cause interesting conflict and problems with the editor. When adding, removing and minimizing paragraphs in the content type, it sometimes happens that Drupal adds the wrong paragraph type to the field and can sometimes even replace existing paragraphs with the new one.

This seems to be related to Ajax requests now finishing before user either minimizes and removes a paragraph type.

We are using the stable widget with Gin admin theme.

The problem has been a bit hard to reproduce but we were able to reproduce it with several browsers and several users.

We also were able to take a video of it.

🐛 Bug report
Status

Active

Version

1.15

Component

Code

Created by

🇫🇮Finland heikkiy Oulu

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

Comments & Activities

Production build 0.71.5 2024