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.clickon 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
Reproduction example
https://codesandbox.io/s/exciting-fire-b1ibfk?file=/src/App.test.js
Prerequisites
If you run a
userEvent.clickon an element which then haspointer-events: noneadded after the interaction, then the nextuserEvent.clickon a different element thinks the element inheritspointer-events: noneExpected behavior
userEvent.clickshould 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