-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
Description
Version
3.2.26
Reproduction link
Steps to reproduce
See the minimal reproduction. As is, the class="red" attribute is not passed down to the component. Try removing "comment B" from the component, and it will work. Or, if you move it underneath/within the v-else, it will also work.
What is expected?
HTML comments in the template should have no affect on the underlying styles, behavior, CSS, JS, Vue, or anything.
What is actually happening?
An HTML comment, combined with v-if, is confusing vue's ability to automatically inherit attributes.