SOLVED: Mega Menu Uncaught TypeError

Browser: Chrome 128.0.6613.138 (Official Build) (64-bit)
OS: Windows 10 Home
URL: Link to a page that illustrates this issue
Video: Support - Bricks Builder - Mega Menu Uncaught TypeError | Loom

There is an Unknown Type Error in the function bricksSubmenuPosition() in bricks.min.js.

Not sure how to fix this.

Hi @ChrisCastillo,

I can see the problem on your website. I would like to replicate it locally, but I can’t. Would it be possible to copy the structure of your menu, and paste it here, so I can check it the same as you have it?

Or if you can, can you send temporary login credentials to your website and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase, so we can take a look?

Thank you,
Matej

Hi @Matej , I’m sending the login details to the email you provided.

Hi @ChrisCastillo,

Thank you for the login details.

I was able to reproduce the issue locally. The problem is that you have a condition on this element (that should not be removed), because the code is always expecting it.
image

I’ll make an internal improvement task on this, but for now, I suggest that you remove the condition from the “Content (CSS)” element and put it on a parent (dropdown) itself.
Then, you add another element (text link for example), and you show it only when you are not showing a dropdown.

Thant should solve the issue for now. We will update this thread when we improve this.

Best regards,
Matej

Hi guys,

We’ve fixed this issue in Bricks 1.11 BETA, now available as a manual download (Bricks – Account)

Please let us know if you are still experiencing issues.

You can see the full changelog here: Bricks 1.11 Changelog – Bricks

As with any beta release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.

Best regards,
Matej