HTML Comment between component root elements prevents applying class to element after comment #2780
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
has workaround
A workaround has been found to avoid the problem
🐞 bug
Something isn't working
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 boldWhat 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.
The text was updated successfully, but these errors were encountered: