Skip to content

$attrs is undefined when component has no props #6263

@greegus

Description

@greegus

Version

2.4.2

Reproduction link

https://jsfiddle.net/50wL7mdz/50757/

Steps to reproduce

Access $attrs as object within component context, when no props were provided.

What is expected?

$attrs is an object containing unrecognized props. Therefore I would expect an empty object, when no props are specified on component tag.

What is actually happening?

$attrs is undefined

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