Skip to content

fix: remove beforeunload and resize listener when closing composer#13169

Draft
steven-mpawulo wants to merge 2 commits into
nextcloud:mainfrom
steven-mpawulo:fix/13031-confirmation-popup-before-leaving
Draft

fix: remove beforeunload and resize listener when closing composer#13169
steven-mpawulo wants to merge 2 commits into
nextcloud:mainfrom
steven-mpawulo:fix/13031-confirmation-popup-before-leaving

Conversation

@steven-mpawulo

Copy link
Copy Markdown
Collaborator

Removed beforeunload and resize listeners

Fixes #13031

Signed-off-by: steven-mpawulo <stevenmpawulo@gmail.com>
@ChristophWurst

Copy link
Copy Markdown
Member

Thanks for the fix

@ChristophWurst ChristophWurst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs more refinement. The listeners have to be put back when you start composing the next email.
And saving any draft should be awaited, so the lines have to be pushed down after the if.

@ChristophWurst ChristophWurst marked this pull request as draft July 1, 2026 13:21
@steven-mpawulo

Copy link
Copy Markdown
Collaborator Author

Ohh,
Let me adjust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mail app shows a confirmation popup before leaving - beforeunload listener not removed when closing composer

2 participants