Etemplate: Changing the tab doesn't count as making any data dirty

This commit is contained in:
nathangray 2020-06-23 13:37:31 -06:00
parent f0e074093c
commit 03e08be0e6
2 changed files with 4 additions and 2 deletions

View File

@ -406,7 +406,8 @@ var et2_tabbox = /** @class */ (function (_super) {
* was loaded.
*/
et2_tabbox.prototype.isDirty = function () {
return this.selected_index != this.value;
// We consider tab changes are not real changes
return false;
};
/**
* Causes the dirty flag to be reseted.

View File

@ -516,7 +516,8 @@ class et2_tabbox extends et2_valueWidget implements et2_IInput,et2_IResizeable,e
*/
isDirty()
{
return this.selected_index != this.value;
// We consider tab changes are not real changes
return false;
}
/**