@unifylib/ui-lib 1.1.37 → 1.1.38

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.
@@ -2650,7 +2650,10 @@ class FilterBuilderComponent {
2650
2650
  clearTimeout(this.autoApplyTimeout);
2651
2651
  this.autoApplyTimeout = null;
2652
2652
  }
2653
- this.applyFilter.emit();
2653
+ setTimeout(() => {
2654
+ this.doSearch();
2655
+ this.applyFilter.emit();
2656
+ }, 0);
2654
2657
  }
2655
2658
  scheduleAutoApply() {
2656
2659
  if (this.autoApplyTimeout) {
@@ -2900,6 +2903,8 @@ class BaseTableComponent extends BaseUtils {
2900
2903
  this.filterRequest = new FilterRequest();
2901
2904
  this.initializeMobilePageSize();
2902
2905
  effect(() => {
2906
+ if (this.applyingFilters)
2907
+ return;
2903
2908
  if (this.pageInfo.lazyLoadData !== true || this.enforceRefresh === true) {
2904
2909
  this.loadData();
2905
2910
  }
@@ -3261,8 +3266,10 @@ class BaseTableComponent extends BaseUtils {
3261
3266
  this.searchStr = $event.searchStr;
3262
3267
  }
3263
3268
  applyPendingFilters() {
3264
- this.advancedAppliedFilter = this.pendingFilters || [];
3269
+ this.applyingFilters = true;
3270
+ this.advancedAppliedFilter = [...this.pendingFilters];
3265
3271
  this.loadData();
3272
+ this.applyingFilters = false;
3266
3273
  }
3267
3274
  handleFilterEmpty($event) {
3268
3275
  if ($event) {