Skip to content

Check if form is dirty before exiting page #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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