WIP: Right-clicking elements in canvas / panel problems

Browser: Firefox & Edge
OS: Windows

The Bricks right-click context menu is behaving very oddly since updating to 1.12.1. ( I never installed 1.12beta or 1.12 on this build. Went directly from [1.11.1] to 1.12.1.

Sometimes the right-click shows the browser menu, other times it’s just the browser’s Paste link, then there are different results on clicking the same / another element depending on whether an element is already selected or not, or if the other element is in canvas or structure panel.

Double context menus also pop-up, each for canvas and structure panel if you click on elements between the 2.

Haven’t checked in Chrome yet, but Edge seems to only have the ‘two context menu’ problem when you have an element selected in canvas and you right click on another element in structure and vice versa.

firefox_lNYGPUy2f8(1)

1 Like

Hello @khan360,

thank you for your report. I was able to reproduce the issues you listed:

  • I believe that Paste only shows on Firefox when you have something in the clipboard API?
    If you go to about:config, and set dom.events.testing.asyncClipboard to true, you will not receive that Paste option anymore. But, be careful, this will allow all websites to read the Clipboard content, so keep that in mind.

  • I was able to reproduce two context menus opened at the same time, one on canvas, one in the structure panel.

  • On Canvas, if I just use right click, it will switch between our context menu and default context menu. I was also able to reproduce this.

Thank you,
Matej

1 Like

You’re welcome and thanks a lot for taking out the time.

1 Like