Subscribe on changes!

HTML Comment between component root elements prevents applying class to element after comment

avatar
Dec 9th 2020

Version

3.0.4

Reproduction link

https://codesandbox.io/s/strange-poitras-4jwf8?file=/src/components/HelloWorld.vue

Steps to reproduce

Try to remove comment between divs in HelloWorld component and resulting html will differ. Text I also want to be bold? will become bold

What is expected?

Class should be passed to the root element in both cases (Second component text should also be bold)

What is actually happening?

Due to presence of comment between divs, class is not applied to the second div.

avatar
Dec 10th 2020

v3.0.3 is works fine.caused by 3bc2914e32b030b1247659f871f6055827154087

avatar
Dec 10th 2020

Hi @edison1105 , sorry, I didn’t notice your PR, but I just checked it. I think we need to add the flags to fragment correctly instead of letting it pass directly.