Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Touch does not place cursor on input fields on Android #10301

@vbraun

Description

@vbraun

Actual Behavior:

  • What is the issue? *

Touch on input field does not place the cursor at different text positions on Android phone

  • What is the expected behavior?

When there is a input field with text, the cursor should be placed at the touch location.

CodePen (or steps to reproduce the issue): *

  1. Open the input demos (https://material.angularjs.org/latest/demo/input) on an Android phone.
  2. Enter some text in an input field.
  3. Touching different positions in the entered text does not place the cursor.

You can move the cursor by dragging the blue cursor location icon, but the cursor cannot be placed by touch events inside the text.

With $mdGestureProvider.skipClickHijack() this also works, i.e., touch events change the cursor location.

Angular Versions: *

  • Angular Version: 1.5.8
  • Angular Material Version: 1.1.1

Additional Information:

  • Browser Type: * Mobile chrome
  • Browser Version: * Android
  • OS: * 7

Related tickets:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions