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 opens on Mac (chrome) #2

Open
onionhammer opened this issue Dec 8, 2018 · 2 comments
Open

Context menu opens on Mac (chrome) #2

onionhammer opened this issue Dec 8, 2018 · 2 comments

Comments

@onionhammer
Copy link

When I long click on a button, the longpress event handler triggers, but it doesnt cancel the context menu from popping up

Found this example of one that does (somehow with jquery bastardy) cancel the context menu, for reference
http://jsfiddle.net/z9ZNU/53/

@kamzata
Copy link

kamzata commented Sep 3, 2021

You could also use style={{userSelect: "none"}} in order to prevent text selection.

@kamzata
Copy link

kamzata commented Sep 4, 2021

When I long click on a button, the longpress event handler triggers, but it doesnt cancel the context menu from popping up

Found this example of one that does (somehow with jquery bastardy) cancel the context menu, for reference
http://jsfiddle.net/z9ZNU/53/

Anyway, I found out I got the same issue. Do you find any solutions?

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

2 participants