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

Closed

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:

Activity

  1. changed the title [-]Touch does not place cursor on input fields[/-] [+]Touch does not place cursor on input fields on Android[/+] on Jan 27, 2017
  2. dkirsanov commented on Apr 7, 2017

    @dkirsanov

    Any progress here, guys? I have the same issue.

  3. loggerq commented on Apr 7, 2017

    @loggerq

    Good to see this is a known issue and others have run into it. It is a pretty impactful bug for a special p2p web app we're trying to launch.

  4. mkuzmych commented on Apr 14, 2017

    @mkuzmych

    I have the same issue.

  5. niroussel commented on Jun 7, 2017

    @niroussel

    Same problem here, reproduced with chrome developper console on Windows.

    1. Go to https://material.angularjs.org/latest/demo/input
    2. Open the developper Console
    3. Toggle device toolbar (Ctrl + Shift + M)
    4. Refresh (Ctrl + F5)

    By the way, there's also a problem with textarea (all text is selected)

    This is really impactful.

  6. PhMetzger commented on Jun 28, 2017

    @PhMetzger

    Agreed, this is really impactful.

    This is the kind of issue which make an entire app down. It's probably something with focus events...
    I understand the effort to move to angular 4, but leaving the communauty which such an issue don't encourage to move to angular 4...

  7. simentesempre commented on Jul 11, 2017

    @simentesempre

    Any progress on this one? This is a blocking issue. Unfortunately this makes the whole framework useless because this is a major issue that makes any app unusable. Is there at least a workaround?
    Thank you very much.

  8. added
    g3: reported
    on Jul 26, 2017
  9. jelbourn commented on Jul 26, 2017

    @jelbourn
    Contributor

    Also reported by at least one Google team

  10. added a commit that references this issue on Jul 27, 2017
    7432cd7
  11. added
    has: Pull Request
    on Jul 27, 2017
  12. added a commit that references this issue on Aug 3, 2017
    baa869a
  13. gelordi commented on Dec 19, 2017

    @gelordi

    This problem still happening on mobile

  14. vbraun commented on Dec 19, 2017

    @vbraun
    Author

    Its fixed for me; Do you have the right version?

  15. gelordi commented on Dec 19, 2017

    @gelordi

    yes, i have 1.1.5 and it doesn't work on android/chrome/mobile.
    i can't edit textarea content

  16. gelordi commented on Dec 20, 2017

    @gelordi

    Can you guys check this problem?

  17. added this to the 1.1.5 milestone on Sep 20, 2018
  18. Splaktar commented on Sep 20, 2018

    @Splaktar
    Contributor

    @gelordi please open a new issue with a CodePen reproduction.

  19. locked as resolved and limited conversation to collaborators on May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser: Androidg3: reportedhas: Pull Requestresolution: fixedui: mobile

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions