Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #24810
Closed
Open
Issue created Nov 17, 2017 by Administrator@rootContributor

Collapse: Multiple Targets Accordion only works once, then fails

Created by: sweisgerber-dev

I created a collapse with multiple targets in an accordion-style setup (set data-parent). The switching works well, exactly once. The second group of targets then has the show class removed and never added again (only after page reload

Steps to reproduce

Check the codepen sample below and click the numbered collapse links from 2-3, then click on 1 again. The second group switches perfectly when clicking 2&3, when clicking on 1 again it fails.

environment

  • Operating system and version Linux (Manjaro, Arch-Based
  • Chrome Version 62.0.3202.94 (Official Build) (64-bit)
  • Example, based on he official docs: https://codepen.io/sweisgerber-dev/pen/mqqBbK
Assignee
Assign to
Time tracking