-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[ClickAwayListener] Dependency on EventListener? #15126
Comments
@cmparsons We will remove EventListener in the next versions. What's your use case? |
Hi @oliviertassinari . My use case was to trigger the |
Well right now it's still documented so we should add types for it (or rather accept PRs adding them). But it's very low priority since we will deprecate it soon. If anybody wants to make contributions that concern TypeScript they can take a look at https://github.com/mui-org/material-ui/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3Atypescript+is%3Aissue |
@cmparsons As a workaround, does it work wrapping the DOM node you are directly interested into? |
The docs for ClickAwayListener mention that the props for EventListener are available, but the TypeScript types are not exposing EventListenerProps.
Expected Behavior 🤔
Should be able to add props for EventListener to ClickAwayListener without TS errors.
Current Behavior 😯
TS errors when trying to add props like
target
Steps to Reproduce 🕹
Link: https://codesandbox.io/s/vm4p17y5ol
Context 🔦
Your Environment 🌎
The text was updated successfully, but these errors were encountered: