Allow collapse for bootstrap based themes

Created on 15 April 2020, almost 5 years ago
Updated 2 June 2024, 10 months ago

Coming from #1538414: Accordion or Collapsible support β†’ , specially comments #40 and #42, simply passing down the wrapper class would fix the collapsible feature for bootstrap based templates.

πŸ“Œ Task
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain pcambra Asturies

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.

  • πŸ‡ΊπŸ‡ΈUnited States scottop

    Howdy! This seems like just what I need, but my site is indeed based on Bootstrap 5. So when I click on something, it expands and then immediately contracts again. Any chance of getting this back in the module? I looked at the patch file and it seems that it has no home in the current 2.0@dev release, so I suspect that the code has moved on. But perhaps the solution of just passing down the wrapper class would work and might be easy to implement.

  • πŸ‡ΊπŸ‡ΈUnited States scottop

    Hello again. Please... I see now that this bug was worked on for the Drupal 7 version, but never got included moving forward. The Drupal 8|9|10 code is very different, so I have no idea how to implement this fix now. It seems that Bootstrap's collapse function is fighting your own collapse function, because when I try to expand a row, it expands, collapses, expands again, collapses again and them stays collapsed. I really want to get this to work so I can use it for a better Book Table of Contents. Any chance someone can give me a hint of where to poke? I spent about eight hours poking around, but in the end was not successful.

  • πŸ‡ΊπŸ‡ΈUnited States scottop

    Wait, Bootstrap was not the problem. This was a Javascript issue which is the same as https://www.drupal.org/project/views_tree/issues/3344199 πŸ› Collapsible javascript event attach multiple times RTBC .

    I applied that patch and it worked. Does this make it a "Related Issue"?

    ANd... Thanks for the Great Module!

Production build 0.71.5 2024