# Context menu on Root Container

**URL:** <https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [October 19, 2020, 12:24pm UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795 "2020-10-19T12:24:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [October 19, 2020, 12:24pm UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/1 "2020-10-19T12:24:53Z")

</div>

If I click on a page _root container_, I get the following _context menu_:  
 ![immagine](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/6/56adea56391ca87ab1c7c6548fd1dc49eb525071.png)  
Any idea on how to get rid of that?

Thanks in advance, regards

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 19, 2020, 5:00pm UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/2 "2020-10-19T17:00:37Z")

</div>

Add a click event handler, and specify that it should `Prevent Default`:  
[https://docs.inductiveautomation.com/display/DOC80/New+in+this+Version#NewinthisVersion-ComponentEvents](https://docs.inductiveautomation.com/display/DOC80/New+in+this+Version#NewinthisVersion-ComponentEvents)

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [October 20, 2020, 7:26am UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/3 "2020-10-20T07:26:01Z")

</div>

Hi PGriffith, thanks for your answer. I forgot to tell you that I’m using _Vision_ and not _Perspective_ (the page you pointed to is speaking about Perspective, as far as I understand).  
Maybe the solution is just the same, isn’t it?

Thanks, regards

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 20, 2020, 2:39pm UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/4 "2020-10-20T14:39:21Z")

</div>

Ah, yeah, it’s going to be different for Vision. That said - you’re getting this context menu in the client session? If so, it looks like it’s being specifically added by a script somewhere. Start with mouse event handlers - [https://docs.inductiveautomation.com/display/DOC80/Component+Events#ComponentEvents-MouseEventHandlers](https://docs.inductiveautomation.com/display/DOC80/Component+Events#ComponentEvents-MouseEventHandlers)

I don’t speak Italian, but from google translate it looks like a set of standard controls; you could try looking through the project (Ctrl + F) for calls to [`system.gui.createPopupMenu`](https://docs.inductiveautomation.com/display/DOC80/system.gui.createPopupMenu) - there might be a common project script being called on popup menus to add that handler.

---

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [October 21, 2020, 8:58am UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/5 "2020-10-21T08:58:16Z")

</div>

If I create just a blank new page with no mouse event handler and I click the _Root Container_ with the right mouse button I get that popup menu: I don’t think I have a hidden mouse event handler anywhere calling `system.gui.createPopupMenu`.

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [June 11, 2021, 3:31am UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/6 "2021-06-11T03:31:09Z")

</div>

This bug is still present in Vision v8.1.7:

 ![Screenshot_11](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/0/207121138e6851a8fb46620113be23f41cb6e192.png)  
When you create a new empty Main Window and run it (F10) the right-click menu is there…  
I don’t want it, I didn’t configure it, so why is there? How to get rid of it?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 11, 2021, 7:53pm UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/7 "2021-06-11T19:53:11Z")

</div>

I didn’t do my due diligence originally - this is an artifact of the new look and feel. I don’t know how to disable it, but I’m looking into it.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 14, 2021, 3:40pm UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/8 "2021-06-14T15:40:31Z")

</div>

This won’t be fixed in the next round of LaF changes (landing Soon ™) but should be possible to disable in a future release, once we get a build of the LaF that allows it to be toggled.

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [November 24, 2021, 10:30am UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/9 "2021-11-24T10:30:53Z")

</div>

Is there any news about that (not wanted) right-click menu in Vision in Ignition v8.1.12?  
It’s super annoying… 🙄

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 24, 2021, 4:33pm UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/10 "2021-11-24T16:33:09Z")

</div>

We have one updated look and feel (to fix this issue), but are waiting on some other pending Vision issues so we can do the upgrade in one piece.

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [November 24, 2021, 5:00pm UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/11 "2021-11-24T17:00:18Z")

</div>

OK, great.  
Is there any timetable for this…?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 24, 2021, 5:46pm UTC](https://forum.inductiveautomation.com/t/context-menu-on-root-container/39795/12 "2021-11-24T17:46:54Z")

</div>

Nothing I can guarantee. The earliest I can see would be 8.1.14.
