You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #829, we added a change in the ContentModal component which prevents the context menu from appearing. According to #828, we should only be disabling the context menu inside that modal, but the change disabled the context menu everywhere.
In the current implementation, we are adding a listener for the "contextmenu" event to window. Based on the information at MDN, this event bubbles up from an element which was right clicked. So, instead of attaching the listener to window, we should add it to the modal container itself.
The text was updated successfully, but these errors were encountered:
In #829, we added a change in the ContentModal component which prevents the context menu from appearing. According to #828, we should only be disabling the context menu inside that modal, but the change disabled the context menu everywhere.
In the current implementation, we are adding a listener for the "contextmenu" event to
window
. Based on the information at MDN, this event bubbles up from an element which was right clicked. So, instead of attaching the listener towindow
, we should add it to the modal container itself.The text was updated successfully, but these errors were encountered: