Browse Source

Fix _up in detached stack props

up-style-manager
Artur Arseniev 5 years ago
parent
commit
df71b9c6bd
  1. 3
      src/style_manager/model/PropertyStack.js

3
src/style_manager/model/PropertyStack.js

@ -87,7 +87,8 @@ export default Property.extend({
_up(props, opts = {}) { _up(props, opts = {}) {
const { __layers = [], ...rest } = props; const { __layers = [], ...rest } = props;
this.__setLayers(__layers); // Detached props will update their layers later in sm.__upProp
!this.isDetached() && this.__setLayers(__layers);
this.__upSelected({ noEvent: true }, opts); this.__upSelected({ noEvent: true }, opts);
return Property.prototype._up.call(this, rest, opts); return Property.prototype._up.call(this, rest, opts);
}, },

Loading…
Cancel
Save