-
Notifications
You must be signed in to change notification settings - Fork 255
Closed
Labels
Description
Reproduction example
https://codesandbox.io/s/gracious-tess-xtusee?file=/src/App.test.js
Prerequisites
- Render two
<select onChange={handleChange}>elements - call
selectOptionsfor one, then another (or call for one then douserEvent.tab())
Expected behavior
onChange is called one time
Actual behavior
onChange is called twice. First time when selecting option, second time when changing option for other <select/> or tabbing out.
User-event version
14.0.4
Additional context
This was not a problem in v13: https://codesandbox.io/s/crazy-bas-1vvrhy?file=/src/App.test.js