# Floating HTML menu doesn't work right anymore

**URL:** <https://community.folivora.ai/t/floating-html-menu-doesnt-work-right-anymore/9396>\
**Category:** Bugs or Unexpected Behavior\
**Created:** [June 29, 2019, 4:29pm UTC](https://community.folivora.ai/t/floating-html-menu-doesnt-work-right-anymore/9396 "2019-06-29T16:29:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Black\_Simorgh](https://community.folivora.ai/user_avatar/community.folivora.ai/black_simorgh/32/260_2.png) [@Black\_Simorgh](https://community.folivora.ai/u/Black_Simorgh)\
**Post date:** [June 29, 2019, 4:29pm UTC](https://community.folivora.ai/t/floating-html-menu-doesnt-work-right-anymore/9396/1 "2019-06-29T16:29:07Z")

</div>

hi,  
I updated just now to the latest version and noticed, that the Floating HTML menu doesn't work how it should. Before the update whenever I choose something, the menu disappears but now it is still there, and you are not able to klick anything.

I guess it is a bug. So can you please fix it?  
Thanks.

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [June 29, 2019, 10:02pm UTC](https://community.folivora.ai/t/floating-html-menu-doesnt-work-right-anymore/9396/2 "2019-06-29T22:02:31Z")

</div>

Can you post the code for your floating html menu? It still seems to work fine here. Basically if you want to close the menu after initiating an action you need to append &closeFloatingHTMLMenu=1 e.g. btt://trigger\_named/?trigger\_name=dummy&closeFloatingHTMLMenu=1

However I think this has always been like this, but maybe I'm missing a specific use case.

---

<div class="post-metadata">

**Author:** ![Black\_Simorgh](https://community.folivora.ai/user_avatar/community.folivora.ai/black_simorgh/32/260_2.png) [@Black\_Simorgh](https://community.folivora.ai/u/Black_Simorgh)\
**Post date:** [June 29, 2019, 10:17pm UTC](https://community.folivora.ai/t/floating-html-menu-doesnt-work-right-anymore/9396/3 "2019-06-29T22:17:14Z")

</div>

I can do this. Do you need just the HTML or also the CSS?  
But I didn't have this issue with the previous version.

Here is the HTML file:  
[contextmenu-dark grey.html.zip](https://community.folivora.ai/uploads/short-url/3tSy4y3Pc2s9WWYlY0pMhLOhBec.zip) (2.0 KB)

---

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [June 30, 2019, 8:27am UTC](https://community.folivora.ai/t/floating-html-menu-doesnt-work-right-anymore/9396/4 "2019-06-30T08:27:57Z")

</div>

ah I think this is some special case because you used all the actions to launch an app or switch to a different window. Previous versions of BTT would (wrongly) recognize this as "click outside" and therefore close the webview. This had to change to make the floating web view much more powerful in other situations.

However adding **&closeFloatingHTMLMenu=1** to your links in the HTML will fix this.

---

<div class="post-metadata">

**Author:** ![Black\_Simorgh](https://community.folivora.ai/user_avatar/community.folivora.ai/black_simorgh/32/260_2.png) [@Black\_Simorgh](https://community.folivora.ai/u/Black_Simorgh)\
**Post date:** [June 30, 2019, 11:37am UTC](https://community.folivora.ai/t/floating-html-menu-doesnt-work-right-anymore/9396/5 "2019-06-30T11:37:51Z")

</div>

Ah, thank you very much. This solved the problem.
