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

update useCapture param for removeEventListener to match addEventListener #2687

Merged
merged 2 commits into from
Mar 10, 2025

Conversation

zeezo887
Copy link
Collaborator

@zeezo887 zeezo887 commented Nov 1, 2024

Description

The useCapture param for both addEventListener and removeEventListener must match for the event to be successfully removed from the DOM.

Reference: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener#matching_event_listeners_for_removal

Related Issues

Fixes #2663

@ifox ifox merged commit 141f135 into area17:3.x Mar 10, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants