Asking confirmation for leaving the page, even if the note has already been saved
Open
Nobody has claimed this yet.
bug
need to reproduce
- Dominant language
- JavaScript
- Stars
- 738
- Forks
- 162
- Avg merge
- 6h 2m
- Merged PRs (30d)
- 35
Description
Steps to reproduce
- Create or edit a note
- Save note or wait until it has been saved automatically
- Close the tab or browser
Expected behaviour
Close tab or browser
Actual behaviour
Browser (latest Firefox) always asking confirmation for leaving the page
Server
Please complete the following information.
- Notes app version: 4.12.3
- Nextcloud version: 30.0.4
- OS: Windows / linux Debian 12
- Web server: Apache
- PHP version: 8.3
- Database: MariaDB 10.6.20
Client
Please complete the following information.
- Browser (incl. version): Firefox 144.0
- OS: Windows 10, Linux Debian 12
Log files
Add relevant parts of your nextcloud.log and/or your browser's JavaScript console here.
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
Reproduce the Firefox behavior using the listed save and tab-closing steps, then trace the note editor's unsaved-change confirmation handling. Verify that closing the page after an explicit or automatic save no longer prompts, while leaving with unsaved changes still behaves correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100