Ionic-framework: Long press on ion-textarea to show "paste" menu does not work (android)

Created on 16 Mar 2017  路  7Comments  路  Source: ionic-team/ionic-framework

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:
When long tapping on an ion-textarea using an android device, the keyboard disappears instead of showing the standard android overlay for pasting content.
I found a workaround by doing

ion-textarea .input-cover {
  display: none;
}

, knowing that this probably breaks something else.

Expected behavior:
The standard android overlay for pasting content should appear

Steps to reproduce:
create an ion-textarea somewhere and do a long tap on it on an android device

Other information:
forum link

Ionic info:

Your system information:

Cordova CLI: 6.5.0 
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.9
Node Version: v6.9.5
Xcode version: Not installed
v3

Most helpful comment

Hello all, I had same problem and I looked for this for a long time.
I found the solution for my problem here. Make sure <ion-textarea> in an <ion-item>.

All 7 comments

Hello, thanks for using Ionic. We will look into this.

I have the same issue, but using display: none; for .input-cover will break the blur on ion-inputs for iOS, after leaving the input (by tapping something else) the input field will re-focus the input and pop-up the keyboard again. This only happens if you tab below the selected input field not above. (Which is really weird behaviour and I couldn't find find any reason for it.)

This happens only on devices running 9.3

Hello all, unfortunately, i cannot reproduce this issue on either a moto g running Android 4.4.4 or a Nexus 6 running Android 7.1.1. Could you guys create a minimal repo we could use to reproduce this issue?

Hello all, I had same problem and I looked for this for a long time.
I found the solution for my problem here. Make sure <ion-textarea> in an <ion-item>.

Thanks @matheper it worked. I think this issue should be closed now

Thanks for the issue! We have moved the source code and issues for Ionic 3 into a separate repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.

Thank you for using Ionic!

Was this page helpful?
0 / 5 - 0 ratings