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); } }); });