Save and Cancel buttons disappear when there's reference to more than one paragraph

Created on 23 September 2024, 6 months ago

Problem/Motivation

We are trying to use the Layout Paragraphs to replace a custom module that does the same on an older version of Drupal (10) and we are migration to a newer version of Drupal (11). We have a content type that has a field that can make reference to different types of paragraphs.

Steps to reproduce

1. First, create two types of paragraphs, let's say, one with a field with a simple text for headlines and another with a field with long texts.

2. In your content type, add a new field of the type Reference and then choose Other/Other (revisions).

3. Select the element reference to be of the type Paragraph and, at the bottom, select the two paragraphs types you created.

4. Try to create some content with this field that refers to paragraphs. When you click the "+" button, we are shown the paragraph types. After clicking one of the paragraph types, the Save and Cancel buttons disappear. I could somehow see a form in the frontend to save a headline, but there is no response. I also couldn't see any errors in the console log.

If you choose just one paragraph type as the reference, these buttons appear normally. I've attached some screenshots to this issue.

๐Ÿ› Bug report
Status

Active

Version

2.0

Component

User interface

Created by

๐Ÿ‡ง๐Ÿ‡ทBrazil everton137 Germany

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

Comments & Activities

  • Issue created by @everton137
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Tirupati_Singh

    Hi @everton137, I tried replicating the issue for the missing Save and Cancel actions button but it didn't replicate. I've followed the steps to reproduce the issue and while using the module for adding paragraphs, the actions button is being shown and getting no issue while using the module. I tried switching the admin theme also and checked on Gin theme but didn't encounter such issue. In addition, I've also tested the latest release of the module on D11 but got the same outcome. I've attached all the screenshots for your reference.

    Tested on Drupal 9.5.11 and Drupal 11.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany marcoliver Neuss, NRW, Germany

    Hi folks,

    I looked into this a bit just now. Like @tirupati_singh I didn't have the problem when I reproduced the steps in isolation.

    Then I looked at the actual project @everton137 is working on and the culprit seems to be the Gin admin theme! More specifically that new beta feature they have to Enable sticky action buttons. When that is on, the buttons for this module's modal break.

    Not sure if this is an issue of this module then, or if that is something that needs to be addressed within Ginโ€ฆ? (tending towards the latter, though)

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany marcoliver Neuss, NRW, Germany

    Quick update: this may be addressed by this Gin issue: https://www.drupal.org/project/gin/issues/3463796 ๐Ÿ› Ensure sticky action buttons to work with modals and ajax refresh-calls Needs review

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany marcoliver Neuss, NRW, Germany
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Tirupati_Singh

    Hi @marcoliver, yes this issue may be occurring while using the Gin theme when the Enable sticky action buttons is enabled. However, most of the missing actions button issues have already been fixed in the Gin theme in the latest release. I've also checked for the issue in the Gin theme but didn't encounter the issue for layout_paragraphs as shown in the attached screenshots.

  • ๐Ÿ‡ง๐Ÿ‡ทBrazil everton137 Germany

    @tirupati_singh @marcoliver, indeed, after I disabled the option Enable sticky action buttons (Beta) of the theme Gin 8.x-3.0-rc13, I don't have the reported issue anymore and I can see these buttons.

  • ๐Ÿ‡ง๐Ÿ‡ทBrazil everton137 Germany

    @tirupati_singh @marcoliver, indeed, after I disabled the option Enable sticky action buttons (Beta) of the theme Gin 8.x-3.0-rc13, I don't have the reported issue anymore and I can see these buttons.

  • ๐Ÿ‡ง๐Ÿ‡ทBrazil everton137 Germany

    @tirupati_singh @marcoliver, indeed, after I disabled the option Enable sticky action buttons (Beta) of the theme Gin 8.x-3.0-rc13, I don't have the reported issue anymore and I can see these buttons.

  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany marcoliver Neuss, NRW, Germany

    Just for the record, I just tested the issue fork from https://www.drupal.org/project/gin/issues/3463796 ๐Ÿ› Ensure sticky action buttons to work with modals and ajax refresh-calls Needs review and with those changes the buttons are available again.

    So I'm closing this issue, since there is nothing to do in Layout Paragraphs, there is a workaround, and an upcoming fix in Gin.

Production build 0.71.5 2024