ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
193 stars 178 forks source link

IOS: keyboard keep open and hide when tap text in a editable DIV #58

Closed netsesame2 closed 5 years ago

netsesame2 commented 5 years ago

Reference from this link: https://github.com/ionic-team/ionic/issues/16901

Bug Report

Ionic version:

[x] 4.6

Current behavior:

RUN on device of IOS 12.1 When tap on an editable block with HTML child content, you will find that, when tap, keyboard open, then tap, keyboard hide, and so on..

Expected behavior:

When tap on anywhere in an editable block, the keyboard should always open.

Steps to reproduce:

  1. Open an ionic v4 app in IOS.
  2. Mark up a div as following code
  3. Tap on the text in the div, watch keyboard's action.
  4. Line1: keyboard works fine. Line 2: keyboard start to dance.

Related code:

<div contentEditable style="-webkit-user-select: auto">
This is a pure text line. // line 1
<div>This is a para with embeded div tag</div> // line 2
</div>

Other information:

Ionic info:

Ionic:

   ionic (Ionic CLI)             : 4.6.0 (/usr/local/Cellar/nvm/0.26.1/versions/node/v10.11.0/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0-rc.0
   @angular-devkit/build-angular : 0.11.4
   @angular-devkit/schematics    : 7.1.4
   @angular/cli                  : 7.1.4
   @ionic/angular-toolkit        : 1.2.2

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 6.4.0, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.3.1, (and 15 other plugins)

System:

   Android SDK Tools : 26.1.1 (/Users/netsesame/Projects/SDK/android)
   NodeJS            : v10.11.0 (/usr/local/Cellar/nvm/0.26.1/versions/node/v10.11.0/bin/node)
   npm               : 6.5.0
   OS                : macOS High Sierra
   Xcode             : Xcode 10.1 Build version 10B61
netsesame2 commented 5 years ago

Any idea?

jcesarmobile commented 5 years ago

I can't reproduce without Ionic on an iOS 12.4 device, so not sure if it's an Ionic issue or it was an iOS issue. On the linked Ionic issue that is closed, there is a similar Ionic issue that is still open, so better subscribe to it.