Skip to content

Bug: Ion-Textarea toggles and losses focus everytime on tap #10828

Closed

Description

@shyamal890

Ionic version: (check one with "x")
[ ] 1.x
[x ] 2.x

I'm submitting a ... (check one with "x")
[ x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Current behavior:
Clicking/tapping on textarea toggles focus and keyboard.

Expected behavior:
When tap occurs, if the focus/keyboard is not shown -> show keyboard and focus input. If the textarea has focus and keyboard is open -> tap on ion-textarea should not loose focus and close keyboard, instead should allow user to change the location of cursor and select text in textarea.

Steps to reproduce:
Just create a ion-textarea and try in android
-->

Related code:

<ion-textarea class="name-input"
                  placeholder="name"
                  [(ngModel)]="name"></ion-textarea>

EDIT: I tested by wrapping ion-textarea with ion-item and it works fine.

Activity

  1. jgw96 commented on Mar 23, 2017

    @jgw96
    Contributor

    Thanks, we will look into this.

  2. ejiyuan commented on May 5, 2017

    @ejiyuan

    +1

  3. liugogal commented on May 15, 2017

    @liugogal

    the same problem
    +1

  4. added 2 commits that reference this issue on Jun 12, 2017
    574ee31
    c10f72b
  5. bhavincb commented on Dec 21, 2017

    @bhavincb

    same problem in ionic 3.19.0
    +1

  6. jakobwilkenson commented on Jan 23, 2018

    @jakobwilkenson

    Any solution to this?

  7. pyummm commented on Feb 2, 2018

    @pyummm

    confirm glitch also, 3.19.1

  8. madsheep commented on Jul 11, 2018

    @madsheep
  9. ionitron-bot commented on Sep 1, 2018

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  10. locked and limited conversation to collaborators on Sep 1, 2018
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

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions