Skip to content

Click events not being triggered with ios touch devices #7635

Closed
@jooj123

Description

@jooj123

Possible bug, I have created this JS Fiddle:
http://jsbin.com/piqolixixi/edit?html,css,js,output

On desktop if i click anywhere (on the components or outside of the components) I get the "Clicked!" alert - which is expected, as on mount I have registered the click event onClick in the Hello component.

If I try the same thing on a ios touch device (im using an ipad mini model A1432, ios 9.3.2)
The click events are not triggered when i touch the react components (Hello and HelloOther).
But if I touch outside of the components the alert comes up.

Whats interesting is that if i add cursor: pointer; css to the components they will then get triggered.
Looks like its some sort of regression around this issue:
#2055

I have tried react versions 0.14 to 15.x - same issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions