Skip to content

fail to resolve custom directive on component #1442

@TerenceZ

Description

@TerenceZ
<comp v-custom-directive></comp>

As above, if we apply a custom directive on a component, then vue will complain the custom directive not found because the directive is resolved on the component's options, not its context.

Here is an online example. An error message is logged in the console.

Test version: 1.0.0-beta.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions