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

Make sure we never try to assign undefined to pointerEvents #3392

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

etodanik
Copy link

Description

I'm using a non-standard browser (https://coherent-labs.com/) for game UI. It handles unset pointerEvents unusually by returning undefined (where the spec would require an empty string). This fix makes this code resilient to such behavior.

A bug was also submitted to their team, but I thought this is a nice harmless way to make sure undefined won't ever make its' way to pointerEvents (which would be a no-op)

I'm using a non-standard browser (https://coherent-labs.com/) for game UI. It handles unset `pointerEvents` unusually by returning `undefined` (where the spec would require an empty string). This fix makes this code resilient to such behavior.

A bug was also submitted to their team, but I thought this is a nice harmless way to make sure `undefined` won't ever make its' way to `pointerEvents` (which would be a no-op)
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.

1 participant