Collapsiblock not working in Sidr

Created on 18 February 2023, over 1 year ago
Updated 18 May 2024, about 1 month ago

The well known module Collapsiblock https://www.drupal.org/project/collapsiblock โ†’ (v. 4.0.0.)
is not working in the Sidr off canvas region.

๐Ÿ› Bug report
Status

Closed: outdated

Version

4.0

Component

Code

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands Yuri

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

Comments & Activities

  • Issue created by @Yuri
  • Status changed to Closed: outdated about 1 month ago
  • ๐Ÿ‡จ๐Ÿ‡ฆCanada jigarius Montrรฉal

    I believe this might happen if you don't enable the "Disable duplicates" option. Without disabling duplicates, Sidr creates a clone of the original elements and puts them in the Sidr panel. These clones don't have any events attached to them. If you want the events to be attached, you will have to do something like this:

    1. Create a hidden DIV or region (say, left-panel) that contains the markup/blocks that you want in your Sidr
    2. Set up a Sidr trigger block that takes content from the above region, say, .region-left-panel
    3. Finally, in the advanced settings, check the box that says "Disable duplicates".

    This should preserve the event listeners attached to the original element. Since this issue is very old, I'm closing it as outdated. If you're still facing it, feel free to reopen it.

Production build 0.69.0 2024