Skip to content

feature(addEventListener): passthrough event listener options#1234

Merged
JohannesKlauss merged 2 commits intoJohannesKlauss:mainfrom
wiserockryan:feature/passthrough-event-listener-options
Apr 9, 2025
Merged

feature(addEventListener): passthrough event listener options#1234
JohannesKlauss merged 2 commits intoJohannesKlauss:mainfrom
wiserockryan:feature/passthrough-event-listener-options

Conversation

@wiserockryan
Copy link
Contributor

Proposal to passthrough useCapture or options to addEventListener and removeEventListener.

My team has found it necessary to specify options.capture and/or options.signal in several of our hot keys. This PR adds an additional eventListenerOptions?: EventListenerOptions to the Options that can be passed through to the addEventListener and removeEventListener calls to allow consumers to specify those options when necessary.

@vercel
Copy link

vercel bot commented Mar 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-hotkeys-hook ❌ Failed (Inspect) Mar 21, 2025 3:20pm

@wiserockryan wiserockryan changed the title feat(addEventListener): passthrough event listener options feature(addEventListener): passthrough event listener options Mar 21, 2025
@JohannesKlauss JohannesKlauss merged commit bfe319b into JohannesKlauss:main Apr 9, 2025
1 of 2 checks passed
@wiserockryan wiserockryan deleted the feature/passthrough-event-listener-options branch April 9, 2025 12:55
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