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
  • #11865
Closed
Open
Issue created Dec 13, 2013 by Administrator@rootContributor

.modal-open is not applied to body when "switching" to another modal

Created by: dvdchr

"switching" means I have an element inside a modal with attributes like this:

data-dismiss="modal" data-toggle="modal" data-target="#anotherModal"

Upon closer look, it seems that show.bs.modal is fired before hidden.bs.modal, which basically adds another .modal-open class to body (therefore does nothing), and then removes the class; ultimately leaving the body with no .modal-open class.

Here is an example: http://jsbin.com/iDovaBup/1/

(I'm not sure if this "switching" is allowed, though.)

Assignee
Assign to
Time tracking