Browse Source

Update always current style

up-style-manager
Artur Arseniev 4 years ago
parent
commit
ccc772b7bb
  1. 6
      src/style_manager/index.js

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

Loading…
Cancel
Save