-
-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-existing style attribute is removed from vnode #875
Comments
Ok, it only happens when the root element is minified. This works:
Defined in one line, it removes the style attribute:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I don't understand why the style attribute disappears when a component renders a vnode that produces the same attribute value.
Code to reproduce the issue:
![Edit 10oxzy2z1q](https://camo.githubusercontent.com/97cbe82b1619b42e1f78fce9db09104b932a9da1fd37751f4d9c41f4fe350241/68747470733a2f2f636f646573616e64626f782e696f2f7374617469632f696d672f706c61792d636f646573616e64626f782e737667)
Expected behavior:
![Edit 10oxzy2z1q](https://camo.githubusercontent.com/97cbe82b1619b42e1f78fce9db09104b932a9da1fd37751f4d9c41f4fe350241/68747470733a2f2f636f646573616e64626f782e696f2f7374617469632f696d672f706c61792d636f646573616e64626f782e737667)
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
The text was updated successfully, but these errors were encountered: