@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.
- package/bundles/sumaris-net.ngx-components.umd.js +3 -2
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/form/entity-editor-modal.class.js +3 -2
- package/esm2015/src/app/core/table/table.class.js +2 -2
- package/fesm2015/sumaris-net.ngx-components.js +3 -2
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -23641,7 +23641,7 @@ class AppTable {
|
|
|
23641
23641
|
// Delete the row :
|
|
23642
23642
|
// - if newly created row (id = -1),
|
|
23643
23643
|
// - or if invalid and not editing (= not cancellable)
|
|
23644
|
-
if (row.id === -1 || (!row.editing && row.invalid)) {
|
|
23644
|
+
if (row.id === -1 || (!row.editing && row.invalid /*do not use !valid because if row is disabled, it will be always !valid */)) {
|
|
23645
23645
|
if (this.debug)
|
|
23646
23646
|
console.debug(`[table] Delete row #${row.id}`);
|
|
23647
23647
|
row.delete();
|
|
@@ -25919,7 +25919,8 @@ class AppEntityEditorModal extends AppTabEditor {
|
|
|
25919
25919
|
.then(() => this.load());
|
|
25920
25920
|
}
|
|
25921
25921
|
else {
|
|
25922
|
-
|
|
25922
|
+
// Use a timeout to avoid error 'NG0100: ExpressionChangedAfterItHasBeenCheckedError'
|
|
25923
|
+
setTimeout(() => this.load());
|
|
25923
25924
|
}
|
|
25924
25925
|
}
|
|
25925
25926
|
ngOnDestroy() {
|