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
src: Add support for ctrl click. #271
Conversation
We pass the `init` argument through so that the underlying click event can be created with ctrlKey set to true if desired.
Codecov Report
@@ Coverage Diff @@
## master #271 +/- ##
=======================================
Coverage 98.75% 98.75%
=======================================
Files 1 1
Lines 160 160
Branches 44 44
=======================================
Hits 158 158
Misses 2 2
Continue to review full report at Codecov.
|
I found this library from a recent blog post by @kentcdodds ( https://kentcdodds.com/blog/common-mistakes-with-react-testing-library/#using-waitfor-to-wait-for-elements-that-can-be-queried-with-find ). This is a great library; I've added a small feature to allow testing multi-selection behavior in my app with ctrl and shift click behavior. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool 👍👍
@all-contributors please add @Raynos for code |
I've put up a pull request to add @Raynos! 🎉 |
🎉 This PR is included in version 10.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
You guys are amazing and super responsive. This is fantastic code maintenance. |
Forgot to add the type definition in the |
We pass the
init
argument through so that the underlyingclick event can be created with ctrlKey set to true if desired.