Kategorie: Tech Notes

Mobile Safari: Unreliable click events (iOS iPad iPhone)


I experienced problems with an unreliable click event on iPad / iPhone when the element which has an „onClick“ function is not an anchor element.


After switching from a „div“ element to an „a“ element the „onClick“ functions works fine.

In depth info here https://github.com/facebook/react/issues/134

Concerned Stack

  • React
  • Zurb Foundation Sites
    • in this case: div element with „.button“ class
  • Mobile Safari