Gin + Paragraphs breaks modal 'add' buttons

Created on 12 March 2024, 9 months ago

Problem/Motivation

When using the Paragraphs stable widget and configure to use modal to add paragraphs, the buttons inside the modal do nothing but closing the modal when used with Gin theme.

Steps to reproduce

  1. Install Gin admin theme
  2. Install paragraphs module
  3. Add a paragraphs field to a node type and configure the paragraphs field widget to use the stable widget and configure it to use the Modal as "Add mode"
  4. When creating a node and trying to add a paragraph, the modal opens up but instantly closes when clicking a paragraph button. No ajax is executed. No drupal, apache or console errors are thrown.

🐛 Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

🇧🇪Belgium fernly

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

Comments & Activities

  • Issue created by @fernly
  • 🇮🇳India Tirupati_Singh

    @Fernly, I tried reproducing the issue but "Modal Form" widget is working as expected. I'm not getting this issue of modal auto close.
    Tested on Drupal 10.2.2 version.

  • 🇧🇪Belgium fernly

    Thank you for trying it out. I figured so far that the modal is effectively closing on "click" (mouse down) before a button is actually hit. The buttons do work when I focus on them and hit Enter. I'm trying to find out what is happening.

  • Status changed to Closed: works as designed 9 months ago
  • 🇧🇪Belgium fernly

    Found the issue. It was the core patch mentioned here: https://www.drupal.org/project/drupal/issues/2616184#comment-15402496 🐛 Right click should not submit buttons with Ajax behaviors Needs work

    Thank you for the quick reply.
    Closing this issue.

Production build 0.71.5 2024