Mobile Safari: Unreliable click events (iOS iPad iPhone)

Problem

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

Solution

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

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.