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
  • Merge requests
  • !13275

Fix issue using Collapse without Panel

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/zessx/patch-1 into master Apr 04, 2014
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: zessx

Overview

If you try to use Collapse without Panel, you must use the .panel class to get it work.

Example

<div id="accordion">
  <div>
    <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">Item #1</a>
    <div id="collapseOne" class="collapse in">
      Lorem Ipsum
    </div>
  </div>
  <div>
    <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">Item #2</a>
    <div id="collapseTwo" class="collapse">
      Lorem Ipsum
    </div>
  </div>
  <div>
    <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree">Item #3</a>
    <div id="collapseThree" class="collapse">
      Lorem Ipsum
    </div>
  </div>
</div>

Expected behavior

On Item #2 click, we expect the first block (under Item #1) to collapse, and the second one (under Item #2) to extend.

Current behavior

On Item #2 click, and the second block (under Item #2) extends. The first block (under Item #1) doesn't collapse.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/zessx/patch-1