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
  • #13031
Closed
Open
Issue created Mar 12, 2014 by Administrator@rootContributor

Tooltip destroy method never triggers hidden event when using animation

Created by: mdvorak

Affects both tooltip and popover.

In hide method, when this.$tip has class 'fade', animation is executed to hide the popover/tooltip. However event 'hidden.bs.*' is executed in complete callback, which means it is executed after the animation finished (works fine without animation). Now the catch is in destroy method, when calling this

this.hide().$element.off('.' + this.type).removeData('bs.' + this.type)

hide is called as expected, but all events are detached before animation ends. I fixed it temporarily by adding

if (this.$tip) this.$tip.removeClass('fade');

before hide, but there might be more elegant solution.

Assignee
Assign to
Time tracking