cyclejs
cyclejs copied to clipboard
Pre-existing style attribute is removed from vnode
Hi,
I don't understand why the style attribute disappears when a component renders a vnode that produces the same attribute value.
Expected behavior:
Maybe the style attribute should stay the same like with snabbdom :
Actual behavior: style attribute is removed when app is started
Versions of packages used: @cycle/dom 22.3 @cycle/run 5.2
Ok, it only happens when the root element is minified.
This works:
<div class="root">
<div style="color: green">he</div>
</div>
Defined in one line, it removes the style attribute:
<div class="root"><div style="color: green">he</div></div>