@syncfusion/ej2-treegrid 19.3.47 → 19.3.48

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.
@@ -4122,6 +4122,10 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4122
4122
  && (_this.grid.filterSettings.columns.length === 0 || _this.grid.searchSettings.key.length === 0)) {
4123
4123
  _this.notify('clearFilters', { flatData: _this.grid.dataSource });
4124
4124
  _this.grid.setProperties({ dataSource: _this.dataResults.result }, true);
4125
+ if (isNullOrUndefined(_this.grid['changedProperties'].dataSource)) {
4126
+ _this.grid.renderModule.data.dataManager = _this.grid.dataSource instanceof DataManager ? _this.grid.dataSource :
4127
+ (isNullOrUndefined(_this.grid.dataSource) ? new DataManager() : new DataManager(_this.grid.dataSource));
4128
+ }
4125
4129
  }
4126
4130
  var callBackPromise = new Deferred();
4127
4131
  _this.trigger(actionBegin, args, function (actionArgs) {
@@ -4669,6 +4673,11 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
4669
4673
  if (isNullOrUndefined(this.grid)) {
4670
4674
  return;
4671
4675
  }
4676
+ if (!isNullOrUndefined(this.rowDropSettings.targetID) &&
4677
+ isNullOrUndefined(document.getElementById(this.grid.rowDropSettings.targetID))) {
4678
+ document.getElementById(this.rowDropSettings.targetID).id = this.grid.rowDropSettings.targetID;
4679
+ this.rowDropSettings.targetID = this.grid.rowDropSettings.targetID;
4680
+ }
4672
4681
  _super.prototype.dataBind.call(this);
4673
4682
  this.grid.dataBind();
4674
4683
  };
@@ -7396,7 +7405,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
7396
7405
  }
7397
7406
  else {
7398
7407
  if (args.target && closest(args.target, '#' + tObj.rowDropSettings.targetID) || parentsUntil(args.target, 'e-treegrid') &&
7399
- parentsUntil(args.target, 'e-treegrid').id === tObj.rowDropSettings.targetID) {
7408
+ parentsUntil(args.target, 'e-treegrid').id === tObj.rowDropSettings.targetID || args.target && document.getElementById(tObj.rowDropSettings.targetID)) {
7400
7409
  setValue('dropPosition', this.dropPosition, args);
7401
7410
  tObj.trigger(rowDrop, args);
7402
7411
  if (!args.cancel && tObj.rowDropSettings.targetID) {