# UI-Context-Menu shown at all connected browser sessions

**URL:** https://discourse.nodered.org/t/ui-context-menu-shown-at-all-connected-browser-sessions/34126
**Category:** Dashboard
**Created:** [12 October 2020 13:48 UTC](https://discourse.nodered.org/t/ui-context-menu-shown-at-all-connected-browser-sessions/34126 "2020-10-12T13:48:27Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [13 October 2020 19:26 UTC](https://discourse.nodered.org/t/ui-context-menu-shown-at-all-connected-browser-sessions/34126/2 "2020-10-13T19:26:13Z")

</div>

Hi @janosch,

Very strange that you are the first one reporting this problem ...

Seemed that I created a new message in the `beforeEmit` and I forgot to copy the `socketid` from the original message, so the dashboard thought that the message had to be sent to all the dashboard sessions. I have solved it via [this](https://discourse.nodered.org/t/dashboard-socket-id-bug/6229/6) nice trick from our friend @dceejay.

I have published version _ **2.0.1** _ of the node-red-contrib-ui-contextmenu node on NPM. Now the contextmenu is only displayed in the dashboard session where the button is being clicked (based on the `socketid`of that particular session):

![contextmenu_socketid](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/3/d379d67c4d21a4c58f12c55043d902e1bd9edba6.gif)

Can you please confirm me if it works!  
Bart

---

_[View the full topic](https://discourse.nodered.org/t/ui-context-menu-shown-at-all-connected-browser-sessions/34126)._
