Unset property value if default is used

This commit is contained in:
BoykoAlex
2020-07-07 16:12:20 -04:00
parent 18459824f4
commit a2762b49f2

View File

@@ -273,7 +273,8 @@ export namespace Properties {
let currentValue = this.cell.attr(property.attr);
if (currentValue !== undefined && currentValue !== null) {
// Remove attr doesn't fire appropriate event. Set default value first as a workaround to schedule DSL resync
this.cell.attr(property.attr, property.defaultValue === undefined ? null : property.defaultValue);
// this.cell.attr(property.attr, property.defaultValue === undefined ? null : property.defaultValue);
this.cell.attr(property.attr, null);
this.cell.removeAttr(property.attr);
}
} else {