Skip to content

Commit bda9264

Browse files
committed
fix reactive style objects
1 parent 65fdd9a commit bda9264

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

datex-bindings/dom-utils.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,14 @@ export class DOMUtils {
958958
}
959959
}
960960

961+
if (properties_object_or_property instanceof Datex.ReactiveValue && typeof properties_object_or_property == "object") {
962+
Datex.ReactiveValue.observe(properties_object_or_property, () => {
963+
for (const [property, value] of Object.entries(properties_object_or_property.val)) {
964+
this.setCSSProperty(element, property, value);
965+
}
966+
});
967+
}
968+
961969
return element;
962970
}
963971

0 commit comments

Comments
 (0)