Patch userEvent.type
to stop typing if the target element has lost focus
#16143
Milestone
userEvent.type
to stop typing if the target element has lost focus
#16143
We should patch
userEvent.type
to check for focus before it fires a keyboard event, and to stop execution via an exception, in the case that the focus has changed.We should probably also contribute this back to TestingLibrary
=> "In testing-library, empty the event queue when a blur or focus event is received" - @ghengeveld
┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: