Reviewed & tested by the community
Project:
Exit Modal
Version:
8.x-1.0-beta2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2021 at 08:28 UTC
Updated:
3 Nov 2023 at 08:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
arunkumarkComment #3
mohit.bansal623 commentedPlease review this patch.
Comment #4
nmatja commentedI spotted that patch #3 did not resolve the issue. After popup closing each "mouseleave" event executed the event listener.
I updated the patch and inserted the drupal standards.
Comment #7
admirlju commentedTo make it easier for maintainers create a merge request. Applied the #4 patch and tested it. From my tests, it correctly opens the dialog when a user tries to close the page.
I think this should eventually be reworked to not use jQuery as that will (hopefully) one day be deprecated. But the patch fixes this particular issue, so RTBC.