Browse Source

Clear undetached properties in composite types

up-style-manager
Artur Arseniev 4 years ago
parent
commit
0fe9012f3d
  1. 6
      src/style_manager/model/PropertyComposite.js

6
src/style_manager/model/PropertyComposite.js

@ -60,6 +60,12 @@ export default Property.extend({
newStyle = toStyle(values, { ...opts, style });
}
if (!this.isDetached()) {
this.getProperties().map(prop => {
newStyle[prop.getName()] = '';
});
}
return Property.prototype.__upTargetsStyle.call(this, newStyle, opts);
},

Loading…
Cancel
Save