You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sf-kialo
changed the title
pageX and pageY coords are not passed to MouseEvent from pointer() call
14.4: pageX and pageY coords are not passed to MouseEvent from pointer() call
Aug 17, 2022
In fact, it's even more broken as the default state is now undefined instead of 0 due to the changes made in the following commit, where pageX and pageY are no longer being initialised:
Reproduction example
https://codesandbox.io/s/heuristic-lake-3rk90q?file=/src/App.js
Prerequisites
MouseEvent
and log thepageX
andpageY
properties of the event (as specified in the docs)user.pointer
event with additionalpageX
andpageY
coords passed likeawait user.pointer({target: anyTarget, coords: { pageX: 100, pageY: 100 }})
pageX
andpageY
.Expected behavior
The properties are properly passed to the mouse event and get logged correctly.
Works correctly in 14.3.
Actual behavior
The value of these properties is
undefined
.Broken as of 14.4.0.
User-event version
14.4.3
Environment
See sandbox
Additional context
When the
assignProps
was changed in this commit, those two properties were omitted.The text was updated successfully, but these errors were encountered: