Commit 6ec9b9c7e131061a9249a6803c4f27a6125219e7

Authored by Serhii Mikhnytskyi
1 parent ed56f041

added - hide flot tooltip on chart destroying, prevent showing tooltip on flot h…

…over, if edit mode is on.
... ... @@ -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();
... ...