Skip to content

onX function removed from $attrs as soon as documented in emits prop #3432

Closed
@plehnen

Description

@plehnen

Version

3.0.7

Reproduction link

https://codesandbox.io/s/onx-function-removed-from-attrs-as-soon-as-documented-in-emits-prop-n9ytr?file=/src/components/ParentComp.vue

Steps to reproduce

Please see minimal reproduction. When emits prop is set with "test1" the onTest1 function is removed from $attrs, so it is not possible to pass it down to a child-component, or not possible to properly use the recommended documentation what is emitted within the scope of the current component.

What is expected?

shouldn't delete emit function (onTest1) from $attrs (especially when using inheritAttrs: false)

What is actually happening?

emit is deleted for children component and not possible to pass it down.

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