Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Rapid click fails to catch the onClick event properly #28626

Open
qkrdmstlr3 opened this issue Mar 25, 2024 · 0 comments
Open

Bug: Rapid click fails to catch the onClick event properly #28626

qkrdmstlr3 opened this issue Mar 25, 2024 · 0 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@qkrdmstlr3
Copy link

React version: 18.2.0

Steps To Reproduce

  1. Open the address attached below in the mobile iOS environment
  2. Touch the red and green boxes quickly and repeatedly

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!

@qkrdmstlr3 qkrdmstlr3 added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

1 participant