-
Notifications
You must be signed in to change notification settings - Fork 252
Closed
Labels
Description
Reproduction example
https://codesandbox.io/s/exciting-fire-b1ibfk?file=/src/App.test.js
Prerequisites
If you run a userEvent.click
on an element which then has pointer-events: none
added after the interaction, then the next userEvent.click
on a different element thinks the element inherits pointer-events: none
Expected behavior
userEvent.click
should not throw a warning.
Actual behavior
Error thrown “Unable to perform pointer interaction as the element has or inherits pointer-events set to "none".”
User-event version
14.0.4
Environment
See sandbox, which is using React 18. I also see the issue in React 17 locally.
Additional context
No response
tu4mo, stefan2718, ericgio, cjbland, drianoaz and 8 more