@syncfusion/ej2-treegrid 26.2.9 → 26.2.11

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.
@@ -5808,6 +5808,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5808
5808
  }
5809
5809
  };
5810
5810
  TreeGrid.prototype.mouseClickHandler = function (e) {
5811
+ var _this = this;
5811
5812
  if (!isNullOrUndefined(e.touches)) {
5812
5813
  return;
5813
5814
  }
@@ -5835,6 +5836,20 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5835
5836
  }
5836
5837
  }
5837
5838
  }
5839
+ if (((target.classList.contains('e-flmenu-cancelbtn') || target.classList.contains('e-flmenu-okbtn')
5840
+ || target.classList.contains('e-content') || target.classList.contains('e-rowcell'))
5841
+ && !isNullOrUndefined(this.filterModule) && this.isReact)) {
5842
+ if (this.grid.filterModule['column'].filterTemplate) {
5843
+ var elem = document.getElementById(this.grid.filterModule.filterModule['dlgObj'].element.id);
5844
+ this.grid.filterModule['fltrDlgDetails'].isOpen = false;
5845
+ if (this.grid.filterModule.filterModule['dlgObj'] && !this.grid.filterModule.filterModule['dlgObj'].isDestroyed && elem) {
5846
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5847
+ this.clearTemplate(['filterTemplate'], undefined, function () {
5848
+ _this.grid.filterModule.filterModule['dlgObj'].destroy();
5849
+ });
5850
+ }
5851
+ }
5852
+ }
5838
5853
  };
5839
5854
  /**
5840
5855
  * Returns TreeGrid rows