This issue has been created
There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-9d9208be-ed48-4877-a86f-78063b540da8 XWIKI-23228 Open

When clicking "Done", the realtime editor sometimes asks if the user wants to leave the page

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-316eea6f-b321-438c-9231-03dd5ee25e1e Michael Hamann created this issue on 22/May/25 12:19
 
Summary: When clicking "Done", the realtime editor sometimes asks if the user wants to leave the page
Issue Type: cid:jira-generated-image-avatar-9d9208be-ed48-4877-a86f-78063b540da8 Bug
Affects Versions: 17.4.0-rc-1
Assignee: Unassigned
Attachments: image-2025-05-22-12-15-49-193.png
Components: CKEditor
Created: 22/May/25 12:19
Priority: cid:jira-generated-image-static-major-9710dd17-fdad-4495-b739-ce252d0dcbc7 Major
Reporter: Michael Hamann
Description:

Steps to reproduce:

  1. Open the realtime editor.
  2. Perform some edits (optional)
  3. Click "Done".

Expected result:

When clicking done, no alert asking if I want to leave the page is displayed.

Actual result:

In some (rare) cases, an alert asking if I want to leave the page is displayed. This seems to be race condition that seems to also reproduce on CI sometimes but I also got this on local demo instances.

43668_image-2025-05-22-12-15-49-193.png

 
 

2 comments

 
cid:jira-generated-image-avatar-316eea6f-b321-438c-9231-03dd5ee25e1e Michael Hamann on 22/May/25 12:27
 

I've had some success reproducing this when delaying the save action a bit, e.g., with the debugger putting a breakpoint in the save action but pressing "continue" in the debugger quite fast after the breakpoint triggered. Also, what I noticed is that when clicking "Leave Page" the page actually reloads, and this reload was apparently triggered by actionButtons.js.

 
cid:jira-generated-image-avatar-316eea6f-b321-438c-9231-03dd5ee25e1e Michael Hamann on 22/May/25 12:28
 
I've had some success reproducing this when delaying the save action a bit, e.g., with the debugger putting a breakpoint in the save action but pressing "continue" in the debugger quite fast after the breakpoint triggered. Also, what I noticed is that when clicking "Leave Page" the page actually reloads (even though with this editor it should normally not reload the whole page) , and this reload was apparently triggered by {{ {} actionButtons.js { }} } .