Skip to content

v-bind="$props" injects inappropriate attributes into children #5606

@dotBits

Description

@dotBits

Version

2.3.2

Reproduction link

http://jsfiddle.net/cdev/g83wrcu9/4/

Steps to reproduce

  1. Define 2 components with a single prop on each one
  2. Use them in a Vue instance
  3. Pass props with v-bind="$props" to each one of them
  4. Inspect HTML

What is expected?

Only props defined in children should be used, the others should be ignored, at least not injected as HTML attributes because they turn markup as invalid

What is actually happening?

Props not defined in child component are injected as attributes and this invalidates HTML markup

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