-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get ContextMenu working (HOC style) #3891
Comments
@Svenito Try to use ContextMenu.show() from "Imperative usage" section. Works for me. |
Thanks, that is what I ended up doing. I raised the issue as the above is expected to work according to the docs. |
@Svenito This is most likely this issue: #3604 This is a solution: #3604 (comment) if you are unable to do that, then this could also work: pmclachlan/blink-mind@79511a5 |
Thanks! The first is not possible if using CRA facebook/create-react-app#8139 Second is more applicable for my use case, and can be used for HOC method as well |
Environment
Question
Using the higher order component example from the docs, I am unable to get the ContextMenu to work. The error I am getting is
TypeError: Class constructor RightClickMeWithContext cannot be invoked without 'new'
Full error page:
https://pastebin.com/9N7Uusrb
I am using a
create-react-app
project, hence the HOC solution.My component:
The text was updated successfully, but these errors were encountered: