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

fix: prevent svg from being the event target of oncontextmenu #2397

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

joeybones
Copy link
Contributor

Description

When an SVG is the event target of an oncontextmenu handler, an exception is thrown when evaluating event.target.classList.contains("hg-button"). This PR adds a CSS selector that specifically targets svgs with the rule pointer-events: none;

Checks

Copy link
Contributor

👋 Hello @joeybones! Please make sure to review the Contributing Guidelines to ensure your PR is compliant. Thank you!

@hodgef hodgef self-assigned this Nov 12, 2024
@hodgef hodgef merged commit 6792f78 into hodgef:master Nov 12, 2024
3 checks passed
@hodgef hodgef added this to the 3.8.17 milestone Nov 12, 2024
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

Successfully merging this pull request may close these issues.

2 participants