Skip to content

directive in slots should be binded into "in-dom" structure of parent component #3529

@trailskr

Description

@trailskr

Vue.js versions

1.0.26, 2.0.0-rc.3

Reproduction Link

fiddle 1.0.26
fiddle 2.0.0-rc.3

What is Expected?

expected dom structure will be the same in directive bind hook and after tick from it

What is actually happening?

in bind hook <comp /> is #docuement-fragment (or null in 2.0)
after tick from bind it <div><p>...</p></div>

I know, may be it'is not a bug. Slots compiles under parent of component that has slots (root instance in this case), and may be it is not possible to bind directives after slot component is "in dom" but who knows?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions