Skip to content

Fix capturing and non-capturing listeners on the same element#2740

Merged
JoviDeCroock merged 1 commit intopreactjs:masterfrom
devongovett:fix-capture
Sep 9, 2020
Merged

Fix capturing and non-capturing listeners on the same element#2740
JoviDeCroock merged 1 commit intopreactjs:masterfrom
devongovett:fix-capture

Conversation

@devongovett
Copy link
Copy Markdown
Contributor

Fixes #2739.

Open to suggestions on making it smaller/better. Not too happy with having two event proxy functions, but didn't think of a better way so far.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.0004%) to 99.805% when pulling 624f43d on devongovett:fix-capture into bf3f96f on preactjs:master.

Copy link
Copy Markdown
Member

@JoviDeCroock JoviDeCroock left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you so much for this PR! Also a great added test 💯

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.

onKeyDownCapture and onKeyDown overwrite each other

3 participants