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: scroll assist on ion-input and ion-textarea not (always) working

See original GitHub issue

Bug Report

Ionic version:

[x] 5.1.0

Current behavior:

Clicking inside an input field does not scroll the page up so that the input field becomes visible.

Expected behavior:

Page should be scrolled up until input is visible

Steps to reproduce:

Related code:

https://github.com/capc0/ion-textarea-scroll-assist

Other information:

Unfortunatly it is not always reproduceable.

Here is an example with <ion-input> when inputing in items 10 and 11 the view is only scrolled after typing. should be scrolled after the click into the input instead.

scroll-assist-1

and another one with <ion-textarea> when inputing in items 10 and 11,

scroll-assist-2

Ionic info:

Ionic:

   Ionic CLI                     : 6.2.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.1.0
   @angular-devkit/build-angular : 0.803.26
   @angular-devkit/schematics    : 8.3.26
   @angular/cli                  : 8.3.26
   @ionic/angular-toolkit        : 2.2.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 5.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 4 other plugins)

Utility:

   cordova-res (update available: 0.14.0) : 0.11.0
   native-run (update available: 1.0.0)   : 0.2.9

System:

   ios-deploy : 1.9.4
   ios-sim    : 8.0.2
   NodeJS     : v10.16.3 (/usr/local/bin/node)
   npm        : 6.14.2
   OS         : macOS Catalina
   Xcode      : Xcode 11.4 Build version 11E146

I have found many other issues regarding scroll assist, but they were all closed so I thought it would be better to open a new one instead of re-opening one of the old issues.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
capc0commented, May 7, 2020

That version works great 😃 Thanks.

1reaction
liamdebeasicommented, May 6, 2020

Thanks! Can you try this dev build:

npm i @ionic/angular@5.2.0-dev.202005061751.1824261

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: scroll assist on ion-input and ion-textarea not (always ...
Bug Report Ionic version: [x] 5.1.0 Current behavior: Clicking inside an input field does not scroll the page up so that the input...
Read more >
long text inside ion-input field can not be scrolled horizontal ...
The issue is when I have longer text inside ion-input field I can't scroll through it horizontal. This issue is ios only related....
Read more >
Ion-Slides: Mobile Touch Slider with Built-In & Custom Animation
Ion-Slides is a multi-section container which offers custom and built-in mobile touch slider animation effects. See how Ion-Slides works with iOS and ...
Read more >
signature=4c44794979d36c3b2c6e1161877175aa,ionic-framework ...
Bug Fixes. all: improve scroll assist reliability for below the fold inputs (#21206) (7166a29). all: overlay components no longer display outline when ...
Read more >
Keyboard improvements for Ionic Apps - Ionic Blog
For native apps, we've even gone as far as creating plugins to help ease the pain of keyboards. Thankfully, browser vendors have agreed...
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