We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
dom-testing-library
react
node
npm
yarn
fireEvent.click(container.querySelector('.backButton')!);
Tried to trigger a click on a result of querySelector.
querySelector
Typescript complained (did not build).
Any typescript project with the line above should produce the issue.
It disallows code that is perfectly valid.
Allow events to accept Element.
Element
The text was updated successfully, but these errors were encountered:
Make event functions accept Element
a6e7af8
Resolves testing-library#149
fix(TS): make event functions accept Element (#150)
f427ec3
closes #149
🎉 This issue has been resolved in version 3.12.2 🎉
The release is available on:
npm package (@latest dist-tag)
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
dom-testing-library
version: 3.12.0react
version: 16.7.0-alpha.0node
version: 0.13.0npm
(oryarn
) version: 1.12.1Relevant code or config:
What you did:
Tried to trigger a click on a result of
querySelector
.What happened:
Typescript complained (did not build).
Reproduction:
Any typescript project with the line above should produce the issue.
Problem description:
It disallows code that is perfectly valid.
Suggested solution:
Allow events to accept
Element
.The text was updated successfully, but these errors were encountered: