@syncfusion/ej2-maps 29.2.4 → 30.1.37

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.
@@ -2744,9 +2744,7 @@ function getElementsByClassName(className) {
2744
2744
  */
2745
2745
  function querySelector(args, elementSelector) {
2746
2746
  var targetEle = null;
2747
- if (document.getElementById(elementSelector)) {
2748
- targetEle = document.getElementById(elementSelector).querySelector('#' + args);
2749
- }
2747
+ targetEle = document.querySelector('#' + args);
2750
2748
  return targetEle;
2751
2749
  }
2752
2750
  /**
@@ -12875,7 +12873,7 @@ var Legend = /** @__PURE__ @class */ (function () {
12875
12873
  this.maps.legendSettings.toggleLegendSettings.opacity :
12876
12874
  this.maps.legendSettings.toggleLegendSettings.border.opacity, this.maps.legendSettings.toggleLegendSettings.fill);
12877
12875
  }
12878
- else {
12876
+ else if (currentItem[currentItem.length - 1].length > 0) {
12879
12877
  var layerIndex = currentItem[currentItem.length - 1].layerIndex;
12880
12878
  this.setToggleAttributes(legendTextElement, legendShapeElement, this.maps.layers[layerIndex].shapeSettings.fill, this.maps.layers[layerIndex].shapeSettings.opacity,
12881
12879
  /* eslint-disable-next-line max-len */