Unable to trigger contextmenu on <Canvas> #1414
Unanswered
xiaopohaier
asked this question in
Q&A
Replies: 1 comment
-
you can use a div wrapper and put the event there, see if that works. canvas doesnt take the onContextMenu prop. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I try to bind
onContextMenu
on canvas to prevent default behavior at broswer, However it dont take effect.Code as follow:
https://codesandbox.io/s/interesting-paper-yd2es?file=/src/App.js
Beta Was this translation helpful? Give feedback.
All reactions