Skip to content
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: PointerEvent button and buttons set to incorrect values; fixes #1083 #1219

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

illandril
Copy link
Contributor

What:

Set button and buttons values appropriately for PointerEvent (#1083)

Why:

Allows PointerEvent handlers that rely on button and/or buttons values to be properly tested

How:

Keep track of the buttons state in Pointer in a way that mimics browser behavior

Checklist:

  • [N/A] Documentation
  • Tests
  • Ready to be merged

Copy link

codesandbox-ci bot commented May 16, 2024

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.

@ph-fritsche ph-fritsche linked an issue Jan 17, 2025 that may be closed by this pull request
@ph-fritsche ph-fritsche merged commit 6614f72 into testing-library:main Jan 21, 2025
3 checks passed
@ph-fritsche ph-fritsche mentioned this pull request Jan 21, 2025
1 task
Copy link

🎉 This PR is included in version 14.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

userEvent.pointer sets incorrect button and buttons values
2 participants