Skip to content

Including comment in template body breaks prop inheritance #2253

@efc-awebb

Description

@efc-awebb

Was having a world of trouble getting prop inheritance to work between a template and its instance (with the class prop specifically). Turns out that having comments in the code breaks this behavior.

Presumably an issue of trying to apply them to the first node in the template's element tree, regardless of whether it is a CommentNode.

<script src="https://gist.github.com/efc-awebb/bc6b4bccc2d9c426f20f.js"></script>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions