@syncfusion/ej2-maps 21.1.41 → 21.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14153,7 +14153,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
14153
14153
  }
14154
14154
  }
14155
14155
  else {
14156
- _this.clearTooltip();
14156
+ _this.clearTooltip(e.target);
14157
14157
  }
14158
14158
  });
14159
14159
  if (this.svgTooltip) {
@@ -14168,7 +14168,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
14168
14168
  });
14169
14169
  }
14170
14170
  else {
14171
- this.clearTooltip();
14171
+ this.clearTooltip(e.target);
14172
14172
  }
14173
14173
  }
14174
14174
  else {
@@ -14178,7 +14178,7 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
14178
14178
  this.maps.notify(click, this);
14179
14179
  }
14180
14180
  else {
14181
- this.clearTooltip();
14181
+ this.clearTooltip(e.target);
14182
14182
  }
14183
14183
  }
14184
14184
  };
@@ -14237,11 +14237,14 @@ var MapsTooltip = /** @__PURE__ @class */ (function () {
14237
14237
  }
14238
14238
  return isTooltipRemoved;
14239
14239
  };
14240
- MapsTooltip.prototype.clearTooltip = function () {
14241
- var isTooltipRemoved = this.removeTooltip();
14242
- if (isTooltipRemoved) {
14243
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
14244
- this.maps.clearTemplate();
14240
+ MapsTooltip.prototype.clearTooltip = function (element) {
14241
+ var tooltipElement = element.closest('#' + this.maps.element.id + '_mapsTooltipparent_template');
14242
+ if (isNullOrUndefined(tooltipElement)) {
14243
+ var isTooltipRemoved = this.removeTooltip();
14244
+ if (isTooltipRemoved) {
14245
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
14246
+ this.maps.clearTemplate();
14247
+ }
14245
14248
  }
14246
14249
  };
14247
14250
  // eslint-disable-next-line valid-jsdoc