A
A
Andrey Okhotnikov2019-08-21 17:36:08
React
Andrey Okhotnikov, 2019-08-21 17:36:08

React and onClick on mobile?

React does not process the onClick event on the iphone, you need to implement clicks through onTouchStart, I already have a lot of onClick handlers hanging in the project, tell me how to fix this painlessly? Maybe there is some kind?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-08-21
@tsepen

React not handling onClick event on iphone,

React handles the onClick event on the iPhone.
The problem is something else. And, perhaps, a much better solution would be to identify it, rather than crutching around the entire onTouchStart project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question