Duplicate modal exit popup

Created on 12 January 2021, almost 4 years ago
Updated 3 November 2023, about 1 year ago

Problem/Motivation

Getting a Duplicate of modal popup during exiting the page. Might be the issue with other JS attach behaviours.

Steps to reproduce

Add a custom block and attach to the page. Exit from the tab and check.

Attach external JS with document ready attach behaviours.

Proposed resolution

Control the triggering element by adding once().

$(document).once().bind('mouseleave', function (e) {

Remaining tasks

Nil

User interface changes

Nil

API changes

Nil

Data model changes

Nil

🐛 Bug report
Status

RTBC

Component

Code

Created by

🇮🇳India arunkumark Coimbatore

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • @admirlju opened merge request.
  • Status changed to RTBC about 1 year ago
  • To 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.

Production build 0.71.5 2024