-
Notifications
You must be signed in to change notification settings - Fork 251
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
fix: replace pointer implementations #754
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1ffc0b1:
|
Codecov Report
@@ Coverage Diff @@
## userEvent14 #754 +/- ##
==============================================
Coverage 100.00% 100.00%
==============================================
Files 50 65 +15
Lines 965 1245 +280
Branches 389 469 +80
==============================================
+ Hits 965 1245 +280
Continue to review full report at Codecov.
|
* add dblclick event * add `pointerId` and `pointerType` to `click` * bind APIs to userEvent instance * no mouse events on disabled elements * fix which elements bubble * replace hover implementation * fix events on disabled elements * fix button * fix buttons * replace click * remove unused utils * branch coverage BREAKING CHANGE: The implementation of pointer related APIs was replaced. This might break tests relying on unintended side-effects of the previous implementation.
* add `pointerId` and `pointerType` to `click` BREAKING CHANGE: The implementation of pointer related APIs was replaced. This might break tests relying on unintended side-effects of the previous implementation.
What:
Replace implementations of our pointer related APIs with calls to
pointer
.Why:
One API to rule them all.
We still have a lot of workarounds scattered over the different implementations.
Replacing the previous implementations with our generalized approach in
pointer
highlights when the results of the new implementation differ. Sometimespointer
needs more work, sometimes the previous assumptions were wrong.Checklist:
Non-trivial changes to the previous implementation
(aside added data like
pointerId
etc.)*enter
/*leave
is not applied on every element in the tree.Misinterpretation of the following spec?