@arsedizioni/ars-utils 21.2.136 → 21.2.138

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.
@@ -1211,10 +1211,11 @@ class SelectDialogComponent {
1211
1211
  */
1212
1212
  doLookup(params) {
1213
1213
  if (this.dialogData.canLookup) {
1214
- this.clearSelection();
1215
1214
  this.lookupParams = params;
1216
1215
  this.lookupParams.first = 0;
1217
1216
  this.lookup.emit({ items: this.dialogData.items, params: this.lookupParams, owner: this });
1217
+ this.clearSelection();
1218
+ this.changeDetector.markForCheck();
1218
1219
  }
1219
1220
  }
1220
1221
  /**
@@ -1236,12 +1237,13 @@ class SelectDialogComponent {
1236
1237
  */
1237
1238
  doLookupPage(e) {
1238
1239
  if (this.canPaginate() && this.dialogData.canLookup) {
1239
- this.clearSelection();
1240
1240
  if (!this.lookupParams) {
1241
1241
  this.lookupParams = { first: 0, count: this.dialogData.pageSize ?? 0 };
1242
1242
  }
1243
1243
  this.lookupParams.first = e.pageIndex * (this.dialogData.pageSize ?? 0);
1244
1244
  this.lookup.emit({ items: this.dialogData.items, params: this.lookupParams, owner: this });
1245
+ this.clearSelection();
1246
+ this.changeDetector.markForCheck();
1245
1247
  }
1246
1248
  }
1247
1249
  /**