Repository navigation
Description
Short description of the problem:
On a device, when there is an ion-input, the ion-list scrolling behaviour does not work.
What behavior are you expecting?
On a device when inputting information, the keyboard opens up and the ion-list scrolls so that the keyboard does not cover the input fields. When the user closes the keyboard, the ion-list then scrolls back to it's original position.
If input is required in an ion-slides component (maybe as part of a wizard), the scrolling behaviour does not work as expected. The form's inputs move off the screen and the content cannot be seen. When the keyboard is closed, the content does not move back into focus.
The following simple input form works perfectly. The keyboard shows and the inputs are scrolled so that they are visible with the keyboard.
<ion-content class='register-page'>
<ion-list>
<img padding src='img/logo.png' style='max-width:100%'>
<p>What course are you studying?</p>
<ion-item class='register-select'>
<ion-label hidden>Course</ion-label>
<ion-input placeholder='Enter your course' [ngModel]="courseInfo" (ngModelChange)="onCourseEntered($event)"></ion-input>
</ion-item>
<button clear (click)="continuePressed()" [disabled]='!courseInfoEntered'>Continue</button>
</ion-list>
</ion-content>
If this exact same code was inside of an , the scrolling behaviour does not work.
A screenshot of all the content completely off screen with the keyboard open:
Ionic Version: 2.x
Browser & Operating System: iOS / Android
Run ionic info from terminal/cmd prompt:
Cordova CLI: 6.0.0
Ionic Version: 2.0.0-beta.2
Ionic CLI Version: 2.0.0-beta.19
Ionic App Lib Version: 2.0.0-beta.9
OS:
Node Version: v5.7.0
Activity
EvanWillms commentedon Apr 10, 2016
With ion-slides getting pushed around by the keyboard, this sounds very similar to #5571 and is likely another symptom of #5432.
adamdbradley commentedon Apr 12, 2016
Related: #6133
32 remaining items
jgw96 commentedon Dec 14, 2016
Hello all! I am going to close this issue as a duplicate of #9553 as they are caused by the same issue.
LiveListMobile commentedon Apr 30, 2017
Just to chime in here on 04/30/17. I have am experiencing this issue as well. The inputs on the form jump around and/or disappear from the screen altogether making the slides completely unusable.
juanpmarengo commentedon Aug 3, 2017
I am also experiencing this issue.
Ionic info:
cli packages: (/home/juanpmarengo/Projects/mydoc-ionic/node_modules)
global packages:
local packages:
System:
edzillion commentedon Aug 8, 2017
Still getting this bug with latest:
cli packages: (E:\dev\circles_testnet_v2\node_modules)
global packages:
local packages:
System:
wowkucko commentedon Jan 31, 2018
Have you ever found an actual working solution for this? I don't want to put all my input fields into one page, i guess slides are my only option.
edzillion commentedon Jan 31, 2018
Not I @wowkucko
miguel-sobong commentedon Feb 13, 2018
getting this too
yohoprashant commentedon Mar 22, 2018
same here.. and I am stuck in the middle of a project.
cli packages: (/usr/local/lib/node_modules)
global packages:
local packages:
System:
shehrazjazib commentedon May 18, 2018
I am facing still this issue when keyboard open, my slides go up and didn't show, until keyboard hide.
jdnichollsc commentedon May 30, 2018
any solution?
yohoprashant commentedon Jul 10, 2018
I had same problem. But I was surprised when It worked after adding a div tag around ion-slides.
madsheep commentedon Jul 11, 2018
The issue comes from the fact that ion-slides have 100% height set, so each slide covers whole screen from top to bottom. The workaround from @yohoprashant works because putting your ion-slides in a div without styles sets their height to 100% of unstyled div (and that let's page scroll normally again)
A more explicit, but similar fix could be:
component:
html:
css:
ionitron-bot commentedon Sep 1, 2018
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.