Skip to content

Check if form is dirty before exiting page#339

Open
eduardomozart wants to merge 1 commit intosplitbrain:masterfrom
eduardomozart:master
Open

Check if form is dirty before exiting page#339
eduardomozart wants to merge 1 commit intosplitbrain:masterfrom
eduardomozart:master

Conversation

@eduardomozart
Copy link

This PR checks if form is dirty (aka. has been changed) before exiting the page, preventing that user looses it changes if it exits the page after changing the form data and not submitting it.
Some templates like ReadTheDokus contains navigation buttons that maybe clicked and user lost all it's changes if it clicks on "Previous" (Anterior) or "Next" (Próximo) instead of "Create page" (Criar página) button, so this small improvement avoids that from happening.
image

This PR checks if form is dirty (aka. has been changed) before exiting the page, preventing that user looses it changes if it exits the page after changing the form data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant