Something went wrong while setting issue due date.
Tooltip destroy method never triggers hidden event when using animation
Closed
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.