@esfaenza/es-table 11.2.22-beta23 → 11.2.22-beta24

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.
@@ -4540,7 +4540,7 @@
4540
4540
  var ipp = this.reportMode ? (view.itemsperpageoverride || 15) : view.itemsperpageoverride || 15;
4541
4541
  this.arrayPulsanti = this.utilities_H.getPagesArray(6, appSearchElement.page, appSearchElement.pages, count, ipp);
4542
4542
  var hasGroupings = !!this.MainGroupView;
4543
- this.emitSearchRequest(false, hasGroupings ? view : null);
4543
+ this.emitSearchRequest(false, hasGroupings ? view : this.SearchView ? this.SearchView : null);
4544
4544
  };
4545
4545
  /**
4546
4546
  * Evento richiamato sul cambio della paginazione. Verrà richiamato l'evento **emitSearchRequest**
@@ -4551,6 +4551,11 @@
4551
4551
  this.changed();
4552
4552
  if (this.MainGroupView)
4553
4553
  this.emitSearchRequest(true, this.MainGroupView);
4554
+ else if (this.SearchView) {
4555
+ // Questo secondo me si può portare a livello un po' più alto
4556
+ this.SearchView.page = 1;
4557
+ this.emitSearchRequest(true, this.SearchView);
4558
+ }
4554
4559
  else
4555
4560
  this.emitSearchRequest(true);
4556
4561
  };