Bug: Rapid click fails to catch the onClick event properly #28626
Labels
Resolution: Stale
Automatically closed due to inactivity
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
React version: 18.2.0
Steps To Reproduce
Link to code example: https://stackblitz-starters-3edcyj.stackblitz.io/
The current behavior
I think the issue reported here(#22521) is still happening. If you click the red and green boxes listed vertically and quickly, the green box's onClick event is ignored and the red onClick event is called twice. However, using the onTouchEnd event instead of the onClick event does not cause any problems.
As reported in the issue(#22521), the onClick event works normally in the vanilla js environment.
Thank you for taking a look :)
RPReplay_Final1711377319.MP4
The expected behavior
The onClick event of an element clicked by the user must be called correctly. Thank you!
The text was updated successfully, but these errors were encountered: