-
Notifications
You must be signed in to change notification settings - Fork 21
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
a.target.closest #18
Comments
@harryfear please share the steps to reproduce |
One possible fix could be:
In Chrome 75-128 and Firefox 105:
If the element is removed during another operation, it will fail:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting error
a.target.closest is not a function
on some Chrome contexts:—Claude says: "This can happen if the event target is a text node or a non-element node."
Element.closest() method is supported in Chrome 75 but I'm seeing the error in Chrome 75-128.
The text was updated successfully, but these errors were encountered: