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
  • #6081
Closed
Open
Issue created Nov 30, 2012 by Administrator@rootContributor

calling collapse('hide') on an already hidden element in firefox causes subsequent calls to collapse('show') to fail for that element

Created by: mikesnare

collapse does not check to see whether or not an element is already shown/hidden before operating on the element. It sets the transitioning flag and then registers a transitionEnd event to unset that flag.

In firefox, if the element is already hidden (in my case, via collapse) and you hide that element again via collapse, the transitioning flag is set but the transitionEnd event never fires because the transition never happens. The transitioning flag is left set to 1, and that prevents subsequent uses of the collapse plugin to fail for the element.

See http://jsfiddle.net/mikesnare/YWdbf/ for an example. (Run in firefox)

Assignee
Assign to
Time tracking