Problem/Motivation
After updating to paragraphs 8.x-1.13 the modal doesnt open after clicking the add in between button.
Proposed resolution
the reason i found, is that the class has changed
from
to
so my suggested solution is to change
paragraphs_features/js/paragraphs-features.add-in-between.js
let deltaInput = dialog.closest('.paragraphs-add-wrapper').querySelector('.paragraph-type-add-modal-delta');
to
let deltaInput = dialog.closest('.paragraphs-add-wrapper').querySelector('.paragraph-type-add-delta.modal');
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | Sélection_221.png | 97.25 KB | steveoriol |
| #2 | deltainput-add-in-between-3267136.patch | 672 bytes | shagel |
Issue fork paragraphs_features-3267136
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
shagel commentedComment #3
steveoriolI still get the error with the patch... :-(

[...]
For make it to works, I need to choose 'paragraph-type-add-modal-button' instead of 'paragraph-type-add-modal-delta' and not 'paragraph-type-add-delta.modal'
Comment #5
daveianoAlso getting this issue. The patch does not solve this for my case.
Comment #6
chr.fritschWe are having a working PR here: https://github.com/thunder/paragraphs_features/pull/58
We will merge it soon.
@steveoriol I think your problem is also in the paragraphs_ee module. That probably needs some adjustments, too.
Comment #8
chr.fritschComment #11
chr.fritschComment #12
steveoriolIn my case, I still need to choose 'paragraph-type-add-modal-button' instead of '
paragraph-type-add-delta.modal' in the file 'js/paragraphs-features.add-in-between.js' for make it works ...Comment #13
chr.fritschAs I said before, it's because you are also using paragraphs_ee and they need to change code as well since paragraphs released a new version yesterday.
Comment #14
steveoriolOK, thank you.
Comment #15
jeroent@steveoriol, I created #3267426: Fix compatibility with Paragraphs 1.13.
Feel free to review the patch.