question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: IonInput focus delay in mobile (ios) in 5.0.7 compared to 5.0.5 when in IonContent below keyboard

See original GitHub issue

Bug Report

Ionic version:

[x] 5.0.7

Current behavior: The delay on focus for ios keyboard animation of IonInput is significantly longer in 5.0.7 than 5.0.5.

Expected behavior: Smooth transition on selecting inputs in mobile.

Steps to reproduce: Open this app: https://github.com/ionic-team/ionic-react-conference-app/blob/master/package.json Add this code to ScheduleView somewhere in the IonContent. Make sure the input is below where the keyboard would show on mobile so just put it at the bottom of the IonContent.

<IonInput placeholder="test"></IonInput>

Open chrome dev tools and hop into mobile view. Click on the input and watch how long it takes to focus. Should be smooth. Now, upgrade to 5.0.7 for ionic/core and ionic/react. Reload app. Check out how slow the focus is on that input.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
mvbergcommented, Apr 4, 2020

Hi all,

another video similar to @nncl’s that shows the difference in input focus speed between 5.0.5 and then 5.0.7 for iOS.

what I am seeing is that focusing input elements in 5.0.7 is actually much slower for “time to input” than 5.0.5 …

in the second recording below, you can see the time-to-input delay for the second field (Password) is much longer - additionally, when toggling between the fields, you can see the caret is slow to render in the second field as well.

this example is just a simple angular formgroup: https://gist.github.com/mvberg/449d09f8b40fe180b8cf2024818a7427

Good:

ionic_5_0_5

Ionic:

   Ionic CLI                     : 5.4.4 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 5.0.5
   @angular-devkit/build-angular : 0.803.25
   @angular-devkit/schematics    : not installed
   @angular/cli                  : 8.3.25
   @ionic/angular-toolkit        : 2.2.0

Capacitor:

   Capacitor CLI   : 1.3.0
   @capacitor/core : 1.3.0

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v10.16.3 (/usr/local/bin/node)
   npm    : 6.9.0
   OS     : macOS Catalina

Bad:

ionic_5_0_7

Ionic:

   Ionic CLI                     : 5.4.4 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 5.0.7
   @angular-devkit/build-angular : 0.803.25
   @angular-devkit/schematics    : not installed
   @angular/cli                  : 8.3.25
   @ionic/angular-toolkit        : 2.2.0

Capacitor:

   Capacitor CLI   : 1.3.0
   @capacitor/core : 1.3.0

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v10.16.3 (/usr/local/bin/node)
   npm    : 6.9.0
   OS     : macOS Catalina
4reactions
liamdebeasicommented, Apr 7, 2020

Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic/pull/20987 and will be available in an upcoming release of Ionic Framework.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: IonInput focus delay in mobile (ios) in 5.0.7 compared to ...
Current behavior: The delay on focus for ios keyboard animation of IonInput is significantly longer in 5.0.7 than 5.0.5. Expected behavior:
Read more >
Ionic 4 – Keyboard scroll view when ion-input is focused
Hi Ionic Fans ! I'am facing a big problem with Ionic 4 and form. Sometimes, the keyboard move ion-input below navigationBar or keyboard...
Read more >
Ionic 5/Angular: Laggy <ion-input> with "Added non-passive ...
There is a noticeable lag between tapping on an ion-input field and the field being available to enter data. This persists when I...
Read more >
@ionic/core | Yarn - Package Manager
Ionic is an open source app development toolkit for building modern, fast, top-quality cross-platform native and Progressive Web Apps from a single codebase ......
Read more >
d8218 - CSDN
5.4.0-rc.1 (2020-10-08). This version is dedicated to our upcoming Ionic Vue release. Bug Fixes. vue: correctly handle query params (#22253) (6849dd3), ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found