Paragraphs in Drag and Drop mode can still be modified when using Paragraphs Sets

Created on 23 April 2021, almost 4 years ago
Updated 25 September 2023, over 1 year ago

Problem/Motivation

When using an Entity reference revisions field that references Paragraphs and selecting Paragraphs EXPERIMENTAL as the form field widget, the Drag and Drop mode on the node edit form is not behaving as expected. Users are able to edit/update paragraphs when in the Drag and Drop mode when they should not be able to perform those actions.

Steps to reproduce

  • Install and enable the stable Drupal 8+ version of Paragraphs
  • Install and enable the stable Drupal 8+ version of Paragraphs Sets
  • Create an example Paragraph
  • On any existing content type, add a new entity reference revisions field for Paragraph entities specifically
  • Make sure to include all/any Paragraphs in this new field
  • Go to configure the entity form display
  • Select Paragraphs EXPERIMENTAL as the widget for the paragraphs reference revision field and save with default settings
  • Add a new piece of content using the content type that has the paragraphs reference revision field
  • Enter Drag and Drop mode for the form field by selecting the three vertical dots and clicking Drag & drop button from down-down actions
  • Enter Drag and Drop mode for the form field by selecting the three vertical dots and clicking Drag & drop button from down-down actions
  • While the Drag and Drop UI appears, you can still see the options to edit the paragraph elements -- which is not intended as in vanilla Paragraphs, the Drag and Drop UI appears and hides the ability to edit paragraph elements while in this mode.

Proposed resolution

  • Establish similar logic from Paragraphs that hides the ability to edit paragraphs when in the Drag and Drop mode or figure out what is preventing Paragraphs from enforcing their logic to do so

Remaining tasks

  • Add a patch / merge request with request changes
  • Review / Test
πŸ› Bug report
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States brittany.huntzberry Arizona, US

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.

  • πŸ‡©πŸ‡ͺGermany stborchert

    I tried to reproduce this but failed:

    Using Paragraphs 1.16, Paragraphs Features 2.0.0-beta3 and Paragraphs Sets 3.0.x-dev on Drupal 9.5.11. If this still an issue for you, please feel free to reopen this issue.

Production build 0.71.5 2024