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
  • #2355
Closed
Open
Issue created Mar 01, 2012 by Administrator@rootContributor

Modal dialogs: Binding show code on first click causes animation to be skipped on first launch.

Created by: chancancode

I haven't dug too deep into this, but it appears that the code that displays a modal dialog is being bind to the data-toggle="modal" button when they are first being clicked. There seems to be a non-trivial setup cost involved here (finding the dialog div in the DOM, creating the backdrop, etc), which causes most of the "drop in" animation to be skipped on the first launch. Dismissing the dialog and brining it up again with the button shows no such problem. This is quite unfortunately because I liked the animation, but most modal dialogs are only being shown once per page. It would be nice if there is a way for me to hand pick the "important" dialogs (such as forms) and pay the setup cost on page load, so that when the user clicks on the button the animation will be smooth as butter.

Assignee
Assign to
Time tracking