S
S
SET12020-10-16 15:55:26
JavaScript
SET1, 2020-10-16 15:55:26

Click event not working on iOS?

The usual addEventListener('click') and element.onclick don't work on iOS. Do not ask for the code, because there is nothing even to show - ordinary listeners. I tried to add cursor: pointer in styles - it doesn't work. It's just that nothing happens when you "tap" your finger on the element.

PS: I don't use jQuery, only Vanilla JS. Tried touchevent and touchstart - don't work either. I tried to write onclick="" element - also does not work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SET1, 2020-10-16
@SET1

The problem was solved by running the code through babel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question