[FIX] web_tour: clear _transitionEndTimer before destory the tip widget
Before this commit, when we doing the tour. If we move the mouse fast enough. We may trigger the tip_consumed event before its _transitionEndTimer call its callback to update the position, and a bubble will be left there. In this commit, we clear the _transitionEndTimer timeout before we destory the widget to prevent the issue. Task 2298950 PR #55155
This commit is contained in:
@@ -107,6 +107,9 @@ var Tip = Widget.extend({
|
||||
this._unbind_anchor_events();
|
||||
clearTimeout(this.timerIn);
|
||||
clearTimeout(this.timerOut);
|
||||
// clear this timeout so that we won't call _updatePosition after we
|
||||
// destroy the widget and leave an undesired bubble.
|
||||
clearTimeout(this._transitionEndTimer);
|
||||
|
||||
// Do not remove the parent class if it contains other tooltips
|
||||
const _removeParentClass = $el => {
|
||||
|
||||
Reference in New Issue
Block a user