Prevent accidentally closing the browser tab/window with unsaved changes
Open
Nobody has claimed this yet.
1. to develop
enhancement
- Dominant language
- JavaScript
- Stars
- 214
- Forks
- 52
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 82
Description
Is your feature request related to a problem? Please describe.
As a Nextcloud Tables user I don't like unexpected data loss.
Describe the solution you'd like
Warn me when I attempt to close a tab/window with unsaved changes, e.g. in the row editor.
Technically this could be done with beforeunload.
Describe alternatives you've considered
No response
Additional context
I edited a complex row and accidentally closed the browser instead of another window. I lost all my edits.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the row editor and trace how it tracks unsaved changes, then identify the browser beforeunload entry point. Done means closing a tab or window warns about pending edits without warning after changes are saved; verify the row-editing and closing flows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100