@sumaris-net/ngx-components 1.23.19 → 1.23.20

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.
@@ -27369,7 +27369,7 @@
27369
27369
  // Delete the row :
27370
27370
  // - if newly created row (id = -1),
27371
27371
  // - or if invalid and not editing (= not cancellable)
27372
- if (row.id === -1 || (!row.editing && row.invalid)) {
27372
+ if (row.id === -1 || (!row.editing && row.invalid /*do not use !valid because if row is disabled, it will be always !valid */)) {
27373
27373
  if (_this.debug)
27374
27374
  console.debug("[table] Delete row #" + row.id);
27375
27375
  row.delete();
@@ -30158,7 +30158,8 @@
30158
30158
  .then(function () { return _this.load(); });
30159
30159
  }
30160
30160
  else {
30161
- this.load();
30161
+ // Use a timeout to avoid error 'NG0100: ExpressionChangedAfterItHasBeenCheckedError'
30162
+ setTimeout(function () { return _this.load(); });
30162
30163
  }
30163
30164
  };
30164
30165
  AppEntityEditorModal.prototype.ngOnDestroy = function () {