diff --git a/frontend/src/Metamaps/Create.js b/frontend/src/Metamaps/Create.js index 5d290fcd..db71fb8c 100644 --- a/frontend/src/Metamaps/Create.js +++ b/frontend/src/Metamaps/Create.js @@ -209,6 +209,7 @@ const Create = { bringToFront: true }) $('.new_topic').hide() + $('#new_topic').attr('oncontextmenu','return false') //prevents the mouse up event from opening the default context menu on this element }, name: null, newId: 1, diff --git a/frontend/src/Metamaps/JIT.js b/frontend/src/Metamaps/JIT.js index 4a665bdc..54ec74b1 100644 --- a/frontend/src/Metamaps/JIT.js +++ b/frontend/src/Metamaps/JIT.js @@ -1305,6 +1305,9 @@ const JIT = { // create new menu for clicked on node var rightclickmenu = document.createElement('div') rightclickmenu.className = 'rightclickmenu' + //prevent the custom context menu from immediately opening the default context menu as well + rightclickmenu.setAttribute('oncontextmenu','return false') + // add the proper options to the menu var menustring = '