Skip to content

Vue.config.errorHandler called twice when I return a rejected Promise from a handler of a component event #9511

Closed
@jfgodoy

Description

@jfgodoy

Version

2.6.6

Reproduction link

https://codepen.io/anon/pen/qgQYra?editors=1011

Steps to reproduce

The problem seems to happen when I handle an event emitted from a component and return a rejected promise. To see the problem in action, open the codepen link, click the button and you will see in the console two logs of the same error, which means the Vue.config.errorHandler was called twice.

What is expected?

I expect the errrorHandler called once.

What is actually happening?

the errorHandler function is called twice.

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