X
408453

EventON 5.0.10: clicks INSIDE the admin lightbox (CMF editor, organizer dropdown) are treated as outside clicks and close the lightbox.

Hello EventON team,

We have identified what looks like a regression in the "close lightbox on clicks outside" behaviour (introduced around 5.0.9). Clicks that are clearly INSIDE the lightbox content are being treated as outside clicks, which calls evo_lightbox_close() and shuts the whole lightbox. We can reproduce it reliably, it affects multiple users (so it is server-side, not a local browser issue), and there are no JavaScript errors in the console.

Environment
- EventON core: 5.0.10 (please let me know if you need exact add-on versions)
- WordPress: latest, PHP 8.x, Percona/MySQL 8
- Theme: BuddyBoss; the behaviour is independent of the logged-in user
- Reproduced in current Chrome and Safari

Reproduction case 1 – Custom Meta Fields editor
1. Add or edit an event, open Custom Meta Fields > Configure.
2. Under a field, click "Inhalt hinzufügen" / "Add content" (the .evo_elm_act_on toggle that opens the rich-text editor).
3. Expected: the editor row expands inside the open lightbox.
4. Actual: the entire CMF lightbox closes.

Reproduction case 2 – Organizer / term assignment
1. Edit an event, go to the Organizer (Veranstalter) section, click "Select".
2. In the lightbox, open the term dropdown (the select2-style .evoelm_sel2 control) and choose an organizer. The selection itself works and the dropdown stays open.
3. To close the dropdown, click its chevron (or anywhere in the dropdown control).
4. Expected: only the dropdown collapses, so the "Save changes" button becomes reachable.
5. Actual: the whole lightbox closes and the selection is lost, before "Save changes" can be clicked.

What we traced
- In both cases the close is performed by EventON's own jQuery method evo_lightbox_close(), invoked from EventON's delegated handler on .evo_lightbox (and the related document-level mousedown/mouseup handlers).
- At the moment of the close, the click target is in fact inside the lightbox content (closest('.config_cmf_data') / inside .evolb_box / inside .evoelm_sel2 all return true). The inside/outside check still classifies it as an outside click.
- Likely cause: the target element is either dynamically re-rendered between mousedown and the close evaluation (CMF editor row toggle) or is a widget control such as the dropdown chevron, so the inside-content containment check (e.g. against .evolb_content / .evolb_box) fails and the click is treated as outside.
- This points to EventON core (eventon_functions.js / the lightbox close handler), not a third-party conflict.

Workaround we are using
- As an interim fix we wrap jQuery.fn.evo_lightbox_close and suppress the close when the pointer interaction began inside .evo_elm_act_on or .evoelm_sel2, and in that case collapse the open dropdown instead. This restores correct behaviour without breaking the X button, the backdrop click, or "Save changes". Happy to share the snippet if useful for your debugging.

Could you confirm whether this is a known issue and whether a fix is planned?

Thank you,
Roger Schmidt

BY: Roger Schmidt - Jun 3,2026 AT 10:56AM - 10 hours ago
You must login to reply to this ticket

HelpDesk

Welcome to EventON helpdesk.

EventON is the #1 Best selling event calendar plugin for WordPress websites in envato marketplace.

Checkout EventON