Subscribe on changes!

fixed style was not parsed correctly into attrs

avatar
Sep 2nd 2021

Version

3.2.7

Reproduction link

sfc.vuejs.org/

Steps to reproduce

see the demo

What is expected?

fixed style should be parsed to object for child component attrs.style

What is actually happening?

fixed style was not be parsed to object , while bind style was parsed correctly

avatar
Sep 2nd 2021

This working correctly, you should do <comp style="color:red;"></comp> without the '.

avatar
Sep 2nd 2021

I modified the demo, please see again.

bind style, attrs.style is string:
attrs.style is color:red;
fixed style, attrs.style is object:
attrs.style is { "color": "red" }

demo link

avatar
Sep 21st 2021

@posva can you see that ? Please

avatar
Sep 21st 2021

Why do you think style string should be parsed into objects? It doesn't seem to be a bug to me as we do not expect this behavior.