Skip to content

emits property blocks $attrs injection #4736

Closed
@marina-mosti

Description

@marina-mosti

Version

3.2.19

Reproduction link

codesandbox.io

Steps to reproduce

Having a component that both declares emits because it itself emits an event (see Mid component in sandbox) and that also expects to pass down onMyEvent down as $attr fallthrough to a Child does not work.

The emits option effectively makes the onMyEvent attribute disappear from $attrs, and the chain is broken.

What is expected?

emits property should not remove onX from $attrs

What is actually happening?

It gets removed and breaks attribute event inheritance

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✨ feature requestNew feature or requesthas workaroundA workaround has been found to avoid the problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions