fix linting

pull/3549/head
yann300 2 years ago committed by Aniket
parent e229fa439d
commit d18309c3d2
  1. 4
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -679,8 +679,8 @@ export const EditorUI = (props: EditorUIProps) => {
}
freeFunctionCondition.set(!!freeFunctionNode)
}
contextmenu._onContextMenu = function () {
if (arguments[0]) arguments[0].event?.preventDefault()
contextmenu._onContextMenu = (...args) => {
if (args[0]) args[0].event?.preventDefault()
onContextMenuHandlerForFreeFunction()
.then(() => orgContextMenuMethod.apply(contextmenu, arguments))
.catch(() => orgContextMenuMethod.apply(contextmenu, arguments))

Loading…
Cancel
Save