Skip to content

Wrong value given to the custom directive in migration guide #632

@boussadjra

Description

@boussadjra

In the example given in the migration guide concerning the custom directive hooks with Vue 3 syntax, we see the following example :

    <p v-highlight="yellow">Highlight this text bright yellow</p>

which cannot work because it will raise the following error :

[Vue warn]: Property "yellow" was accessed during render but is not defined on instance.

the correct value should be done as string or the yellow value should be defined as property :

  <p v-highlight="'yellow'">Highlight this text bright yellow</p>

Reproduction Link

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