Skip to content

fix removeEventListener logic bug: Accidentally removes unrelated listener#588

Open
xytczh wants to merge 1 commit into
jeffreylanters:mainfrom
xytczh:fix-bug
Open

fix removeEventListener logic bug: Accidentally removes unrelated listener#588
xytczh wants to merge 1 commit into
jeffreylanters:mainfrom
xytczh:fix-bug

Conversation

@xytczh

@xytczh xytczh commented Jun 24, 2026

Copy link
Copy Markdown

The file module/source/hooks/use-event-system.ts uses the logical AND operator (&&), which means "keep the listener only if both the event name and the callback are different." Consequently, if either the event Name or the callback matches, the listener will be removed.

@xytczh
xytczh requested a review from jeffreylanters as a code owner June 24, 2026 06:17
@xytczh

xytczh commented Jun 25, 2026

Copy link
Copy Markdown
Author

@jeffreylanters Hi, just a gentle reminder — this PR is ready for review when you have time. Thanks!

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