From ccc772b7bb4e90f3ecd62f2d228d23f2d18f6506 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Fri, 10 Dec 2021 12:35:30 +0100 Subject: [PATCH] Update always current style --- src/style_manager/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/style_manager/index.js b/src/style_manager/index.js index 9f236ebc8..fc2c177c0 100644 --- a/src/style_manager/index.js +++ b/src/style_manager/index.js @@ -566,14 +566,14 @@ export default () => { sectors.map(sector => { sector.getProperties().map(prop => { + this.__upProp(prop, style, parentStyles, opts); const props = prop.getProperties?.(); - if (props /*&& prop.isDetached?.()*/) { + + if (props) { const fromStyle = prop.get('fromStyle'); // TODO parentStyles should be as newStyle const newStyle = fromStyle ? fromStyle(style) : style; props.forEach(prop => this.__upProp(prop, newStyle, parentStyles, opts)); - } else { - this.__upProp(prop, style, parentStyles, opts); } }); });