Dropdown menu disappears before you can click something

Hello!

I’ve just inherited this site and I’ve noticed that the dropdown doesn’t always stay down when you click on it, if that makes sense. I’ve made a gif to show you what I mean. I click it, and when I go to click something else it disappears. It does work eventually (usually around my 3rd attempt) but never seems to work for me the first time.

31685i47C942A2478F9C73.gif

Any ideas? Thanks guys

Hi @ZoeNZ,

Thanks for reaching out.

I want to tag in some thought leaders to see if they can assist with this.

Hi @ajchapman20 @DanielSanchez @Stephanie-OG , would you be able to share your thoughts with @ZoeNZ?

Thanks!

Jess

Hi @ZoeNZ ,

GIF helps a lot to understand your problem. Thanks!!

But, we need link of this page to understand how the menu works in the code.

U can send for us?

Thanks! :slightly_smiling_face:

Hey @DanielSanchez

http://brandmachine.com/ is the website

Hey @ZoeNZ

Just following up.

Did you get what you needed?

Hi Kevin!

Sadly haven’t heard back with a solution yet!

Cheers,

Zoe

Hey @ZoeNZ

Sorry for the delay. Ill have a closer look at this today.

In the meantime if you inspect at the markup (im using FF) and the associated JS you can see that the LI element has a click listener that adds the “active” class. And inside the A element has a click event listener. I believe that this combo is whats causing the issue. See image below:

You can investigate by looking at the Companymain.js file line 51 and 33.

So there are a number of things going on here, including a few redundencies about 3 of them that can probaly be reduced. Luckely it seems that only one of them is functioning…weird thing to be lucky about lol.

Anyway in your “Companymain.js” file on line ~39, find this line of code:

child.parent().siblings('.hs-item-has-children').find('.hs-menu-children-wrapper').slideUp(250);

Without the ability to modify and test I can’t be sure that this will help but its worth a shot.

PS

Out of pure non-judgemental curiousity, who/where did you get this template and or code?

Thanks Kevin!!!

Ha I’m not sure, I’ve only just come on board! But I’m curious too…

Cheers,

Zoe