Browse Source

Fix stack type update

up-style-manager
Artur Arseniev 4 years ago
parent
commit
95757cecbe
  1. 2
      src/style_manager/index.js
  2. 6
      src/style_manager/model/PropertyStack.js

2
src/style_manager/index.js

@ -569,7 +569,7 @@ export default () => {
this.__upProp(prop, style, parentStyles, opts);
const props = prop.getProperties?.();
if (props) {
if (props && prop.getType() !== 'stack') {
const newStyle = prop.__getFromStyle(style);
const newParentStyles = parentStyles.map(p => ({
...p,

6
src/style_manager/model/PropertyStack.js

@ -52,7 +52,11 @@ export default Property.extend({
__upTargets(p, opts = {}) {
if (opts.__select) return;
return PropertyBase.prototype._up.call(this, p, opts);
return PropertyBase.prototype.__upTargets.call(this, p, opts);
},
__upTargetsStyle(style, opts) {
return PropertyBase.prototype.__upTargetsStyle.call(this, style, opts);
},
__upLayers(m, c, o) {

Loading…
Cancel
Save