Skip to content

routerWillLeave triggers a second confirmation box if the user clicks "Cancel" #2541

@rps

Description

@rps

When routerWillLeave returns text to trigger a confirmation, and the user clicks "Cancel" to abort the transition, the confirmation box appears again. This appears to be a result of routerWillLeave being called again. nextLocation appears to be the same both times routerWillLeave is called.

Expected: one confirmation box appears to the user. The confirmation box goes away if the user clicks "Cancel".

Test this by adding a routerWillLeave method that returns text.

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