Skip to content

errorHandler not catching exceptions in promises with .then() inside v-on #11893

Closed
@adamsol

Description

@adamsol

Version

2.6.11

Reproduction link

https://jsfiddle.net/adamsol/hj6q32v0/

Steps to reproduce

Click the three buttons.

What is expected?

Exceptions for all the buttons should be captured and displayed below.

What is actually happening?

Exception for the second button isn't captured.


Related to #7653.

I'm using @click="doAction().then(close)" for closing modal windows after successfully finishing async actions. A workaround for exceptions in doAction to be captured by errorHandler is to add () => in the event handler, but it's not obvious.

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