PopupMaker / Popup-Maker

Popup Maker plugin for WordPress
https://wppopupmaker.com/
105 stars 38 forks source link

Press ESC and F4 to close don't work on any popups launched from another popup #1048

Open marklchaves opened 1 year ago

marklchaves commented 1 year ago

Describe the bug

Popup Maker > Popup Settings > Close > Alternate Methods

Press ESC to Close and Press F4 to Close don't work on any popups that are launched from another popup. Only Click Overlay to Close works.

Site information

Popup Maker version: 1.18.1

WordPress version: 6.2

PHP version: X.X.X

Expected behavior

All alternate close methods should work for any popup launched from another popup when the alternate methods settings are on.

Current behavior

See description.

Steps to reproduce

  1. Create a popup that has a click open trigger for another popup.
  2. Added the pum-close and popmake-close classes to the click open trigger so the first popup closes when the second popup opens.
  3. Turn on all Close > Alternate Methods for both popups.
  4. Bring up the first popup and press your ESC key. The first popup closes.
  5. Bring up the first popup again and this time click the trigger in the first popup to display the second popup.
  6. After the second popup displays, press ESC or F4 and the popup will not close as it should. If you click outside the popup content area, the popup will close.

Errors

None

Additional context

Reproduced by a customer and 2 support team members.