Skip to content

Prevent user from leaving page with incomplete form #996

@benjaminleonard

Description

@benjaminleonard

It's quite easy to accidentally leave the page or close a modal before you've finished filling it out. Most notably if you're on a longer form like the instance create.

To prevent this, can we ask for confirmation to discard changes from the user. Looks like this can be done with React Router Prompt.

I can work on styling for this – to be used on both the side modals and full-page forms. Looks like this uses a native prompt dialog

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions