-
Notifications
You must be signed in to change notification settings - Fork 542
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
fix spotlight twice touch on touch devices #936
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 7e53d3f:
|
Hey @rsnzh You are changing the code style of the updated files, that's not acceptable. |
# Conflicts: # src/components/Overlay.js # src/components/Spotlight.js
Hey @rsnzh Anyway, I couldn't replicate the behavior you mentioned. Also, I'm against imperative actions, such as |
Also, if you check the Modal demo, the spotlight click allows the input to be selected, so it's not triggering a click in the element. |
You can reproduce twice clicks on touch devices, just as issues #855 #861 .
The result is not the same on touch devices and pc browsers. |
The solution doesn't cover all cases. The |
1.remove css pointer-events and mousemove event
2.add click method on spotlight component if set spotlightClicks true then trigger target element click event