-
Notifications
You must be signed in to change notification settings - Fork 1.9k
refactor: rewrite ClickListener
#18962
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
refactor: rewrite ClickListener
#18962
Conversation
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18962 +/- ##
==========================================
- Coverage 84.88% 84.85% -0.04%
==========================================
Files 396 395 -1
Lines 14512 14487 -25
Branches 4738 4713 -25
==========================================
- Hits 12319 12293 -26
- Misses 2044 2046 +2
+ Partials 149 148 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
901e319
Hey there! v11.80.0 was just released that references this issue/PR. |
Closes #18960
Rewrote
ClickListener
.Changelog
Changed
ClickListener
to a functional component.ClickListener
in TypeScript.Testing / Reviewing
yarn test packages/react
ClickListener
is only used in one file which makes me question whether it's necessary or if there's something else that should be used instead. Maybe in another pull request, I could look into substitutingClickListener
foruseOutsideClick
.useOutsideClick
should probably be ported/rewritten in TypeScript first and that can't happen until #18950 moves forward.