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
  • #6691
Closed
Open
Issue created Jan 24, 2013 by Administrator@rootContributor

Double-clicking collapse trigger element causes invalid 'collapsed' class on it

Created by: fwielstra

fiddle: http://jsfiddle.net/R54gD/4/

I've made the fiddle so that the clickable target is highlighted a bright red when it has the class "collapsed". Normally, it will be red when collapsed, white when expanded. Double-clicking it from the 'collapsed' state, however, will cause the 'collapsed' class to be applied, even though the animation is still going, and it remains as such while the animation persists.

The issue lies in bootstrap-collapse.js, the collapse data-api does not check if the animation is currently running on the target or not, it just checks the current status of 'this', which toggles regardless of the state of the collapsing element. I'll see if I can provide a fix.

This issue seems to persist in all browsers. It's an issue for us because we show a rotating arrow in the clickable element depending on its current collapsed state.

Assignee
Assign to
Time tracking