@syncfusion/ej2-treegrid 26.2.10 → 26.2.12

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.
@@ -2646,7 +2646,17 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
2646
2646
  }
2647
2647
  if ((!isNullOrUndefined(currentData[this.parent.childMapping]) && !isCountRequired(this.parent)) ||
2648
2648
  ((currentData[this.parent.hasChildMapping]) && isCountRequired(this.parent))) {
2649
- currentData.hasChildRecords = true;
2649
+ if (!isNullOrUndefined(currentData[this.parent.childMapping])) {
2650
+ if (currentData[this.parent.childMapping].length > 0) {
2651
+ currentData.hasChildRecords = true;
2652
+ }
2653
+ else {
2654
+ currentData.hasChildRecords = false;
2655
+ }
2656
+ }
2657
+ else {
2658
+ currentData.hasChildRecords = true;
2659
+ }
2650
2660
  if (this.parent.enableCollapseAll || !isNullOrUndefined(this.parent.dataStateChange)
2651
2661
  && isNullOrUndefined(currentData[this.parent.childMapping])) {
2652
2662
  currentData.expanded = false;
@@ -5808,6 +5818,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5808
5818
  }
5809
5819
  };
5810
5820
  TreeGrid.prototype.mouseClickHandler = function (e) {
5821
+ var _this = this;
5811
5822
  if (!isNullOrUndefined(e.touches)) {
5812
5823
  return;
5813
5824
  }
@@ -5835,6 +5846,22 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5835
5846
  }
5836
5847
  }
5837
5848
  }
5849
+ if (((target.classList.contains('e-flmenu-cancelbtn') || target.classList.contains('e-flmenu-okbtn')
5850
+ || target.classList.contains('e-content') || target.classList.contains('e-rowcell'))
5851
+ && !isNullOrUndefined(this.filterModule) && this.isReact)) {
5852
+ if (!isNullOrUndefined(this.grid.filterModule['column'])) {
5853
+ if (this.grid.filterModule['column'].filterTemplate) {
5854
+ var elem = document.getElementById(this.grid.filterModule.filterModule['dlgObj'].element.id);
5855
+ this.grid.filterModule['fltrDlgDetails'].isOpen = false;
5856
+ if (this.grid.filterModule.filterModule['dlgObj'] && !this.grid.filterModule.filterModule['dlgObj'].isDestroyed && elem) {
5857
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5858
+ this.clearTemplate(['filterTemplate'], undefined, function () {
5859
+ _this.grid.filterModule.filterModule['dlgObj'].destroy();
5860
+ });
5861
+ }
5862
+ }
5863
+ }
5864
+ }
5838
5865
  };
5839
5866
  /**
5840
5867
  * Returns TreeGrid rows