From 95757cecbed5a9d536cb4552012d3867649cccc9 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 11 Dec 2021 13:47:12 +0100 Subject: [PATCH] Fix stack type update --- src/style_manager/index.js | 2 +- src/style_manager/model/PropertyStack.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/style_manager/index.js b/src/style_manager/index.js index 10a95d930..43a01e0e9 100644 --- a/src/style_manager/index.js +++ b/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, diff --git a/src/style_manager/model/PropertyStack.js b/src/style_manager/model/PropertyStack.js index 2bd3b32c2..f8eff73f7 100644 --- a/src/style_manager/model/PropertyStack.js +++ b/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) {