@sumaris-net/ngx-components 0.26.1 → 0.26.2
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 +6 -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.class.js +7 -3
- package/fesm2015/sumaris-net.ngx-components.js +6 -2
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/entity-editor.class.d.ts +4 -0
|
@@ -25978,7 +25978,7 @@
|
|
|
25978
25978
|
idChanged = isNotNil(data.id)
|
|
25979
25979
|
&& this.previousDataId !== undefined // Ignore if first loading (=undefined)
|
|
25980
25980
|
&& this.previousDataId !== data.id;
|
|
25981
|
-
opts = Object.assign({ updateRoute: this._autoUpdateRoute && idChanged && !this.loading, openTabIndex: this._autoOpenNextTab && idChanged && this.computeNextTabIndex() }, opts);
|
|
25981
|
+
opts = Object.assign({ updateRoute: this._autoUpdateRoute && idChanged && !this.loading, openTabIndex: this._autoOpenNextTab && idChanged && isNil(this.previousDataId) && this.computeNextTabIndex() }, opts);
|
|
25982
25982
|
this.data = data;
|
|
25983
25983
|
this.previousDataId = data.id || null;
|
|
25984
25984
|
promiseOrVoid = this.setValue(data);
|
|
@@ -26324,9 +26324,13 @@
|
|
|
26324
26324
|
this.error = userMessage;
|
|
26325
26325
|
};
|
|
26326
26326
|
/* -- protected methods -- */
|
|
26327
|
+
/**
|
|
26328
|
+
* Return undefined to keep same tab
|
|
26329
|
+
* @protected
|
|
26330
|
+
*/
|
|
26327
26331
|
AppEntityEditor.prototype.computeNextTabIndex = function () {
|
|
26328
26332
|
var nextTabIndex = this.selectedTabIndex + 1;
|
|
26329
|
-
return nextTabIndex < this.tabCount ? nextTabIndex :
|
|
26333
|
+
return nextTabIndex < this.tabCount ? nextTabIndex : undefined;
|
|
26330
26334
|
};
|
|
26331
26335
|
AppEntityEditor.prototype.unload = function () {
|
|
26332
26336
|
return __awaiter(this, void 0, void 0, function () {
|