Skip to content

Touchable: press when 'href' has different results for touch/mouse-or-keyboard interaction #835

@dcalhoun

Description

@dcalhoun

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Tapping a TouchableWithoutFeedback (or any Touchable type) that possesses both accessibilityRole="link" and a valid href does not open the href within the browser on touch devices. It does open when clicked using a mouse.

If the current behavior is a bug, please provide the steps to reproduce and
if a minimal demo of the problem via Glitch or similar.

  1. Open Glitch this test case on a touch device (e.g. iPhone)
  2. Tap the red block containing the text "Button Link".

What is the expected behavior?
The URL assigned to the href opens within the browser.

Environment (include versions). Did this work in previous versions?

  • OS: iOS 11
  • Device: iPhone 7
  • Browser: Safari
  • React Native for Web (version): 0.5.1
  • React (version): 16.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions