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
{{ message }}
This repository was archived by the owner on Sep 1, 2020. It is now read-only.
Hello, and thank you for this wonderful package. I am building an application where I only want to enable the context menu when certain conditions are met (for example, some value in state is true).
Is there a way to pass a prop to ContextMenuTrigger to make it ignore right clicks and display the default browser context menu when a prop like shouldTrigger is false?
I am able to conditionally wrap my component with ContextMenuTrigger, however, it is causing a problem for my use case. When the condition becomes true, the nodes inside of ContextMenuTrigger are recreated by React, and thus the user's selected text is removed.
The text was updated successfully, but these errors were encountered:
Hello, and thank you for this wonderful package. I am building an application where I only want to enable the context menu when certain conditions are met (for example, some value in state is true).
Is there a way to pass a prop to
ContextMenuTrigger
to make it ignore right clicks and display the default browser context menu when a prop likeshouldTrigger
is false?I am able to conditionally wrap my component with
ContextMenuTrigger
, however, it is causing a problem for my use case. When the condition becomes true, the nodes inside ofContextMenuTrigger
are recreated by React, and thus the user's selected text is removed.The text was updated successfully, but these errors were encountered: