Skip to content
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

Fix closing browser tab loses undoable mutations without warning #9072

Conversation

adguernier
Copy link
Contributor

@adguernier adguernier commented Jul 4, 2023

Problem

Closing browser tab loses undoable mutations (update or deletion) without warning

Solution

When the user closes the tab, if there is an undoable mutation ongoing, show a dialog to ask the user for confirmation before actually closing the tab. If they cancel, the page should remain open and the mutation proceed.

Fix #8505

Capture.video.2023-07-04.14.44.32.webm

@adguernier adguernier added RFR Ready For Review and removed WIP Work In Progress labels Jul 4, 2023
@fzaninotto
Copy link
Member

Works like a charm!

@fzaninotto fzaninotto merged commit 42f4d2e into master Jul 5, 2023
10 checks passed
@fzaninotto fzaninotto deleted the 8505-undoable-mutations-not-executed-if-user-closes-browser-tab-too-soon branch July 5, 2023 13:29
@fzaninotto fzaninotto added this to the 4.12.1 milestone Jul 5, 2023
@fzaninotto fzaninotto changed the title Alert user if he close the window before the end of undoable notification Fix closing browser tab loses undoable mutations without warning Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undoable mutations not executed if user closes browser tab too soon
2 participants