nextcloud / nextcloud/notes

Asking confirmation for leaving the page, even if the note has already been saved

Open
#1,656 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Create or edit a note
  2. Save note or wait until it has been saved automatically
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.