Click event not working on iOS?

  • 0
    The usual addEventListener ('click') and element.onclick don't work on iOS. Do not ask for the code, because there is nothing to even show - ordinary listeners. Tried adding cursor: pointer in styles - doesn't work. Simply nothing happens when you tap the element with your finger.

    PS: I don't use jQuery, only Vanilla JS. Tried touchevent and touchstart - don't work either. I tried to prescribe onclick = "" to the element - it doesn't work either
    JavaScript Anonymous, May 16, 2020

  • 1 Answers
  • 0
    The problem was solved by running the code through babel.

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!