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 Uncaught TypeError #2

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

Conversation

zawata
Copy link

@zawata zawata commented Jul 2, 2024

path is a non-standard property that was removed in chromium 110 causing this code to throw errors when encountered. the whatwg dom spec lists it's replacement, composedPath(), as having the first element always be currentTarget so just use that instead.

https://groups.google.com/a/chromium.org/g/blink-dev/c/UYY2TRSL8_k
https://dom.spec.whatwg.org/#dom-event-composedpath

path is a non-standard property that was removed in chromium 110 causing this code to throw errors when encountered. the whatwg dom spec lists it's replacement, composedPath(), as having the first element alwasy be currentTarget so just use that instead.
@zawata zawata requested a review from avi-gitkraken July 2, 2024 19:53
@zawata zawata changed the base branch from master to gitkraken July 2, 2024 19:54
Copy link

@avi-gitkraken avi-gitkraken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we're failing a few tests.

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