-
Notifications
You must be signed in to change notification settings - Fork 472
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
FireEvent on Window #165
FireEvent on Window #165
Conversation
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 👍 thanks!
🎉 This PR is included in version 3.13.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Hi @VadimBrodsky, I don't know if this PR was supposed to fix this, but at the moment I'm having an error when doing this: fireEvent.mouseMove(window, { clientX: 20, clientY: 50 }) Console throws: It works fine when using This is using |
Hmmm... Could you open a PR with a failing test? Thanks! |
Hey @kentcdodds here is a csb link with a failing test: Does that help? |
Got it. I'll have a fix shortly. |
A fix will be released in a minute. |
What:
Change the typings for
fireEvent
to accept Window in addition to DOM Elements.Why:
Some events such
postMessage
are not fired on a DOM element but rather on Window.How:
Checklist: