@esfaenza/es-table 19.2.35 → 19.2.36
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.
|
@@ -103,10 +103,17 @@ class EsTablePagerComponent {
|
|
|
103
103
|
* @param {number} pageSize Dimensione selezionata lato UI
|
|
104
104
|
*/
|
|
105
105
|
choice(pageSize) {
|
|
106
|
+
let prevModel = this.Model();
|
|
106
107
|
if (pageSize == this.DefaultAll() && this.WarnOnAll) {
|
|
107
108
|
this.msgExts.simpleWarningWithChoice(this.lc.loc("Are you sure you want to retrieve all results?"), this.lc.loc("This might slow down the page and possibly crash the entire application"), () => {
|
|
108
109
|
this.pagingSelected.emit(pageSize);
|
|
109
110
|
this.Model.set(pageSize);
|
|
111
|
+
}, () => {
|
|
112
|
+
// NG19, serve un extra refresh
|
|
113
|
+
this.Model.set(pageSize);
|
|
114
|
+
requestAnimationFrame(() => {
|
|
115
|
+
this.Model.set(prevModel);
|
|
116
|
+
});
|
|
110
117
|
});
|
|
111
118
|
}
|
|
112
119
|
else {
|