You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#117576 Gantry Menu Items Not Clickable After Closing Mediabox Modal

Posted in ‘Mediabox’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Monday, 23 February 2026 19:04 GMT

bascherz

If I click on a link that opens a Mediabox modal and then dismiss it, none of the Gantry dropdown menus work. Clicking them does nothing. Have to refresh the page to get them working again. Tested in both Chrome and Firefox. Does not affect hover dropdown, only click. Javascript problem? Is there a workaround?

Ryan

Please post a link to an example on your site.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

bascherz

Go to https://fairfaxprism.org/jce-test and click the link at the top of the page. Then dismiss the modal. Then try to click on one of the menu items.

Make sure to try more than once. Sometimes it works properly.

Ryan

For a quick test, please set the Swipe option in the MediaBox parameters to No, then relaod the page and try the MediaBox and menu items again.

Any change?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

bascherz

That made no difference. HOWEVER, I did discover a new symptom. If I click the link that opens the modal, dismiss it, then click a menu item, it won't work. But if I click the link to open the modal and dismiss it again, then the menu items work when clicked. Weird, huh?

Ryan

From testing and debugging, this doesn’t appear to be caused by JCE MediaBox itself. The click on the Gantry menu is reaching the menu correctly, but the Gantry menu script is cancelling the action after the Mediabox is closed.

It looks like Gantry is treating the click after closing the popup as if it were part of its own page interaction handling, and as a result the first menu click is ignored.

Could you please check that you are running the latest version of the Gantry framework?

If possible, you could also try temporarily disabling MediaBox just to confirm the behaviour changes, this helps narrow it down further.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

bascherz

There is no newer version of Gantry, so I am definitely running the latest version. You don't think it's odd that opening the modal and dismissing it a second time clears the issue? The only recourse it would seem is to use hover rather than click for the Gantry menus, assuming we want to continue using Mediabox.

Bruce

Ryan

You don't think it's odd that opening the modal and dismissing it a second time clears the issue?

What it suggests is that Gantry’s menu script is ending up in an “in-between” state after the first Mediabox interaction. When the Mediabox is opened and closed again, that state gets reset, which is why the menu starts working normally again.

From debugging, the click event itself is not being blocked by MediaBox. The Gantry menu script is receiving the click and then cancelling it internally. The first open/close sequence appears to leave Gantry’s menu logic thinking it shouldn’t react to the next click. The second open/close clears that condition.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

bascherz

So, do you think this is a Gantry javascript issue? If so, any suggestions on where to look for a place to resolve it?

Thanks so far, Ryan. Your help is always appreciated.

Bruce

Ryan

Please try JCE MediaBox 2.2.4 Beta - https://www.joomlacontenteditor.net/downloads/mediabox/development

Clear you browser cache after install.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.