Skip to content
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

Context menu is opened two times every time I right click. #41

Closed
tomthought opened this issue Jun 12, 2017 · 1 comment
Closed

Context menu is opened two times every time I right click. #41

tomthought opened this issue Jun 12, 2017 · 1 comment

Comments

@tomthought
Copy link

tomthought commented Jun 12, 2017

  • I have added a context menu to my webview element via react.
  • I right click (i.e. two-finger click on OSX) a link and the context menu comes up.
  • I select an option, or click away, and the context menu pops up again at this secondary location.

Workaround:
I am counting the number of events that come through, and only taking the odd-numbered ones (I return false on even-numbered counts in the shouldShowMenu function).

Looking for a bit of help here as I am not doing anything particularly odd with the library I don't think. Just adding a context menu to my webview element after it has been mounted via react.

@tomthought
Copy link
Author

Found the issue on our end. Apologies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant