Fix selectbox resetDirty()

This commit is contained in:
nathangray 2020-06-25 10:31:48 -06:00
parent 34dbf8531b
commit 175c1fe369
2 changed files with 7 additions and 0 deletions

View File

@ -346,6 +346,9 @@ var et2_selectbox = /** @class */ (function (_super) {
et2_selectbox.prototype.doLoadingFinished = function () {
_super.prototype.doLoadingFinished.call(this);
this.set_tags(this.options.tags, this.options.width);
// Reset dirty again here. super.doLoadingFinished() does it too, but set_tags() & others
// change things. Moving set_tags() before super.doLoadingFinished() breaks tag widgets
this.resetDirty();
return true;
};
et2_selectbox.prototype.loadFromXML = function (_node) {

View File

@ -488,6 +488,10 @@ export class et2_selectbox extends et2_inputWidget
this.set_tags(this.options.tags, this.options.width);
// Reset dirty again here. super.doLoadingFinished() does it too, but set_tags() & others
// change things. Moving set_tags() before super.doLoadingFinished() breaks tag widgets
this.resetDirty();
return true;
}