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
  • #31110
Closed
Open
Issue created Jun 19, 2020 by Administrator@rootContributor

Modals that include tooltip/popover throws error on close

Created by: Hiws

A modal with a tooltip/popover throws an error on close, if the tooltip/popover wasn't shown while the modal was open. Uncaught TypeError: Cannot read property 'destroy' of null

Steps to reproduce:

  1. Go to modal w/ tooltip example
  2. Open dev console (i used chrome on windows)
  3. Open the modal, and close it again.
  4. Notice 3 errors in the console.
  5. Open the modal again, hover the one of the links to show a tooltip.
  6. Close the modal again.
  7. Notice only 2 errors are displayed in the console now, since one tooltip was shown.

The error isn't limited to the docs. Codepen example

Assignee
Assign to
Time tracking