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
  • #6980
Closed
Open
Issue created Feb 19, 2013 by Administrator@rootContributor

Modal plugin: when using data-backdrop="static" javascript occured error.

Created by: huboo

I'm using bootstrap v2.3.0, when I am using data-backdrop="static" in html and using javascript modal('hide') to hide the modal, the javascript occured error: Uncaught TypeError: Cannot call method 'remove' of undefined bootstrap.min.js:6

Below is my solution: change: removeBackdrop: function () { this.$backdrop.remove() this.$backdrop = null } to: removeBackdrop: function () { if(this.$backdrop){ this.$backdrop.remove() this.$backdrop = null } }

Thanks guys.

Assignee
Assign to
Time tracking