@syncfusion/ej2-maps 21.2.3 → 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.
@@ -13815,7 +13815,7 @@ class MapsTooltip {
13815
13815
  }
13816
13816
  }
13817
13817
  else {
13818
- this.clearTooltip();
13818
+ this.clearTooltip(e.target);
13819
13819
  }
13820
13820
  });
13821
13821
  if (this.svgTooltip) {
@@ -13830,7 +13830,7 @@ class MapsTooltip {
13830
13830
  });
13831
13831
  }
13832
13832
  else {
13833
- this.clearTooltip();
13833
+ this.clearTooltip(e.target);
13834
13834
  }
13835
13835
  }
13836
13836
  else {
@@ -13840,7 +13840,7 @@ class MapsTooltip {
13840
13840
  this.maps.notify(click, this);
13841
13841
  }
13842
13842
  else {
13843
- this.clearTooltip();
13843
+ this.clearTooltip(e.target);
13844
13844
  }
13845
13845
  }
13846
13846
  }
@@ -13897,11 +13897,14 @@ class MapsTooltip {
13897
13897
  }
13898
13898
  return isTooltipRemoved;
13899
13899
  }
13900
- clearTooltip() {
13901
- const isTooltipRemoved = this.removeTooltip();
13902
- if (isTooltipRemoved) {
13903
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
13904
- this.maps.clearTemplate();
13900
+ clearTooltip(element) {
13901
+ let tooltipElement = element.closest('#' + this.maps.element.id + '_mapsTooltipparent_template');
13902
+ if (isNullOrUndefined(tooltipElement)) {
13903
+ const isTooltipRemoved = this.removeTooltip();
13904
+ if (isTooltipRemoved) {
13905
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
13906
+ this.maps.clearTemplate();
13907
+ }
13905
13908
  }
13906
13909
  }
13907
13910
  // eslint-disable-next-line valid-jsdoc