Commit d5e7019cfa20af00aaadc852a8b51c362fd332d5
Committed by
GitHub
Merge pull request #3916 from hardshell/bug/flot-widget-tooltip-not-hiding
added - hide flot tooltip on chart destroying, prevent showing tooltip on flot hover, if edit mode is on.
Showing
1 changed file
with
5 additions
and
1 deletions
... | ... | @@ -718,6 +718,10 @@ export class TbFlot { |
718 | 718 | |
719 | 719 | public destroy() { |
720 | 720 | this.cleanup(); |
721 | + if (this.tooltip) { | |
722 | + this.tooltip.stop(true); | |
723 | + this.tooltip.hide(); | |
724 | + } | |
721 | 725 | if (this.plot) { |
722 | 726 | this.plot.destroy(); |
723 | 727 | this.plot = null; |
... | ... | @@ -1170,7 +1174,7 @@ export class TbFlot { |
1170 | 1174 | if (!this.plot) { |
1171 | 1175 | return; |
1172 | 1176 | } |
1173 | - if (!this.tooltipIndividual || item) { | |
1177 | + if ((!this.tooltipIndividual || item) && !this.ctx.isEdit) { | |
1174 | 1178 | const multipleModeTooltip = !this.tooltipIndividual; |
1175 | 1179 | if (multipleModeTooltip) { |
1176 | 1180 | this.plot.unhighlight(); | ... | ... |