@sumaris-net/ngx-components 18.12.12 → 18.12.13

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.
@@ -35265,8 +35265,10 @@ class AppTable {
35265
35265
  }
35266
35266
  // If the row exists (has an id)
35267
35267
  else {
35268
- // need to call cancel function (if confirmation will be called before)
35269
- if (this.confirmBeforeCancel) {
35268
+ // Call cancel function ,
35269
+ // - if confirmation will be called before
35270
+ // - or if row is pristine (not dirty)
35271
+ if (this.confirmBeforeCancel || !row.dirty) {
35270
35272
  this.cancelExistingRow(event, row, { keepEditing: false });
35271
35273
  return;
35272
35274
  }
@@ -38030,8 +38032,10 @@ class AppAsyncTable {
38030
38032
  }
38031
38033
  // If the row exists (has an id)
38032
38034
  else {
38033
- // need to call cancel function (if confirmation will be called before)
38034
- if (this.confirmBeforeCancel) {
38035
+ // Call cancel function ,
38036
+ // - if confirmation will be called before
38037
+ // - or if row is pristine (not dirty)
38038
+ if (this.confirmBeforeCancel || !row.dirty) {
38035
38039
  await this.cancelExistingRow(event, row, { keepEditing: false });
38036
38040
  return;
38037
38041
  }