In between quick links don't work on first click for rows after the first when Off Canvas Dialog is used

Created on 7 June 2022, over 2 years ago
Updated 8 May 2023, over 1 year ago

Problem/Motivation

When the In Between buttons are present, the second and later rows do not open up the Off Canvas Dialog. You have to click a button in the first row. Once that is clicked the buttons work.

Steps to reproduce

I'm using:
Paragraphs 8.x-1.14
Paragraphs Features 8.x-1.16
Paragraphs Editor Enhancements 2.0.3

And otherwise, a number of basic paragraphs. The form field is set to "Use off-canvas instead of modal dialog" and "Enable add in between buttons"

Proposed resolution

Looks like the JS which binds the ajax for the Off-Canvas links only applies to the first row. Looks like instead of using `querySelector()`, `querySelectorAll()` should be used.

Remaining tasks

I'm attaching a patch to change to `querySelectorAll()`

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pingevt

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.

Production build 0.71.5 2024