@syncfusion/ej2-treegrid 34.1.30 → 34.1.32

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.
@@ -6189,10 +6189,11 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6189
6189
  * Called internally if any of the property value changed.
6190
6190
  *
6191
6191
  * @param {TreeGridModel} newProp - properties details which has to be modified
6192
+ * @param {TreeGridModel} oldProp - properties details which previously existed
6192
6193
  * @hidden
6193
6194
  * @returns {void}
6194
6195
  */
6195
- TreeGrid.prototype.onPropertyChanged = function (newProp) {
6196
+ TreeGrid.prototype.onPropertyChanged = function (newProp, oldProp) {
6196
6197
  var properties = Object.keys(newProp);
6197
6198
  var requireRefresh = false;
6198
6199
  var refreshComponent = false;
@@ -6250,6 +6251,11 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
6250
6251
  if (!this.initialRender) {
6251
6252
  this.grid.filterSettings = getActualProperties(this.filterSettings);
6252
6253
  }
6254
+ if (newProp.filterSettings && !isNullOrUndefined(newProp.filterSettings.hierarchyMode)
6255
+ && oldProp.filterSettings && !isNullOrUndefined(oldProp.filterSettings.hierarchyMode)
6256
+ && newProp.filterSettings.hierarchyMode !== oldProp.filterSettings.hierarchyMode) {
6257
+ this.refresh();
6258
+ }
6253
6259
  break;
6254
6260
  case 'showColumnMenu':
6255
6261
  this.grid.showColumnMenu = this.showColumnMenu;
@@ -17106,6 +17112,7 @@ var InfiniteScroll = /** @__PURE__ @class */ (function () {
17106
17112
  var index = getRowIndexFromElement(rows[rows.length - 1]);
17107
17113
  var previousPage = this.parent.grid.pageSettings.currentPage;
17108
17114
  var nextPage = Math.ceil(index / this.parent.grid.pageSettings.pageSize) + 1;
17115
+ var totalVisibleCount = this.visualData ? this.visualData.length : 0;
17109
17116
  if ((previousPage >= this.maxPage) || (nextPage > this.maxPage)) {
17110
17117
  return;
17111
17118
  }