# Dropdown menu disappears before you can click something

**URL:** <https://community.hubspot.com/t/dropdown-menu-disappears-before-you-can-click-something/25456>\
**Category:** Blog, Website & Page Publishing\
**Created:** [September 14, 2020, 10:21pm UTC](https://community.hubspot.com/t/dropdown-menu-disappears-before-you-can-click-something/25456 "2020-09-14T22:21:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZoeNZ](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zoenz/32/69256_2.png) [@ZoeNZ](https://community.hubspot.com/u/ZoeNZ)\
**Post date:** [September 14, 2020, 10:21pm UTC](https://community.hubspot.com/t/dropdown-menu-disappears-before-you-can-click-something/25456/1 "2020-09-14T22:21:25Z")

</div>

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](https://d2qpr2jzcazej7.cloudfront.net/original/2X/b/b1e9b25ee173b7f6db512fbe1763b1e4cf46d366.gif)

Any ideas? Thanks guys

---

<div class="post-metadata">

**Author:** ![JessicaH](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jessicah/32/14826_2.png) [@JessicaH](https://community.hubspot.com/u/JessicaH)\
**Post date:** [September 15, 2020, 9:02am UTC](https://community.hubspot.com/t/dropdown-menu-disappears-before-you-can-click-something/25456/2 "2020-09-15T09:02:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DanielSanchez](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/danielsanchez/32/48193_2.png) [@DanielSanchez](https://community.hubspot.com/u/DanielSanchez)\
**Post date:** [September 16, 2020, 12:29pm UTC](https://community.hubspot.com/t/dropdown-menu-disappears-before-you-can-click-something/25456/3 "2020-09-16T12:29:22Z")

</div>

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! 🙂

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [September 16, 2020, 3:18pm UTC](https://community.hubspot.com/t/dropdown-menu-disappears-before-you-can-click-something/25456/4 "2020-09-16T15:18:15Z")

</div>

Hey @DanielSanchez

[http://brandmachine.com/](http://brandmachine.com/) is the website

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [September 18, 2020, 6:31pm UTC](https://community.hubspot.com/t/dropdown-menu-disappears-before-you-can-click-something/25456/5 "2020-09-18T18:31:28Z")

</div>

Hey @ZoeNZ

Just following up.

Did you get what you needed?

---

<div class="post-metadata">

**Author:** ![ZoeNZ](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zoenz/32/69256_2.png) [@ZoeNZ](https://community.hubspot.com/u/ZoeNZ)\
**Post date:** [September 20, 2020, 11:14pm UTC](https://community.hubspot.com/t/dropdown-menu-disappears-before-you-can-click-something/25456/6 "2020-09-20T23:14:35Z")

</div>

Hi Kevin!

Sadly haven’t heard back with a solution yet!

Cheers,

Zoe

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [September 21, 2020, 1:22pm UTC](https://community.hubspot.com/t/dropdown-menu-disappears-before-you-can-click-something/25456/7 "2020-09-21T13:22:21Z")

</div>

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:

 ![31999i494FF39B6C5A2B46.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/4/74845a02f14c999a4eecf87a0d15e7706d201c77.jpeg)

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

---

<div class="post-metadata">

**Author:** ![Kevin-C](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevin-c/32/34570_2.png) [@Kevin-C](https://community.hubspot.com/u/Kevin-C)\
**Post date:** [September 21, 2020, 7:54pm UTC](https://community.hubspot.com/t/dropdown-menu-disappears-before-you-can-click-something/25456/8 "2020-09-21T19:54:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ZoeNZ](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zoenz/32/69256_2.png) [@ZoeNZ](https://community.hubspot.com/u/ZoeNZ)\
**Post date:** [September 21, 2020, 8:01pm UTC](https://community.hubspot.com/t/dropdown-menu-disappears-before-you-can-click-something/25456/9 "2020-09-21T20:01:45Z")

</div>

Thanks Kevin!!!

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

Cheers,

Zoe
