Reproduction example
https://codesandbox.io/s/userevent-pointer-click-3f2x7d?file=/src/App.test.js
Prerequisites
- Render multiple elements.
- Add an event listener for
click on a common ancestor.
- Drag a pointer from one element to another.
Expected behavior
click event is dispatched on closest common ancestor.
Actual behavior
No click event if the pointerup target is different than the pointerdown target.
User-event version
14.3.0
Environment
Testing Library framework:
JS framework:
Test environment:
DOM implementation:
Additional context
No response