ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: ion-slides with form inputs

Open dylanvdmerwe opened this issue 10 years ago • 23 comments

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: capture

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

dylanvdmerwe avatar Mar 07 '16 07:03 dylanvdmerwe

With ion-slides getting pushed around by the keyboard, this sounds very similar to #5571 and is likely another symptom of #5432.

EvanWillms avatar Apr 10 '16 22:04 EvanWillms

Related: https://github.com/driftyco/ionic/issues/6133

adamdbradley avatar Apr 12 '16 15:04 adamdbradley

Hello all! Is this still an issue with the latest version of ionic? Thanks!

jgw96 avatar Jun 20 '16 16:06 jgw96

Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. There were a couple of fixes for the keyboard and scrolling in an earlier release so this should be fixed now. Thanks for using Ionic!

jgw96 avatar Jun 24 '16 14:06 jgw96

I'm still facing this issue

haroondilshad avatar Jul 18 '16 09:07 haroondilshad

@jgw96 Could you reopen this issue? I facing it using the latest version of ionic (beta.11).

Bouzmine avatar Sep 20 '16 01:09 Bouzmine

@jgw96 This is still happening with RC0.

Chuckv01 avatar Oct 04 '16 18:10 Chuckv01

@manucorporat I'm seeing this as well. (also FYI this issue is assigned to a closed milestone)

jamesgroat avatar Oct 10 '16 21:10 jamesgroat

Happening in Ionic 1 with ion-slides as well.

ivanmayes avatar Oct 11 '16 19:10 ivanmayes

Any workaround?

kazigais avatar Nov 20 '16 20:11 kazigais

Hello all! I am going to close this issue as a duplicate of #9553 as they are caused by the same issue.

jgw96 avatar Dec 14 '16 18:12 jgw96

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.

LiveListMobile avatar Apr 30 '17 18:04 LiveListMobile

I am also experiencing this issue.

Ionic info:

cli packages: (/home/juanpmarengo/Projects/mydoc-ionic/node_modules)

@ionic/cli-plugin-cordova       : 1.6.1
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils                : 1.7.0
ionic (Ionic CLI)               : 3.7.0

global packages:

Cordova CLI : 7.0.1 

local packages:

@ionic/app-scripts : 2.1.0
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.5.3

System:

Android SDK Tools : 26.0.1
Node              : v8.0.0
OS                : Linux 4.10
npm               : 5.3.0 

juanpmarengo avatar Aug 03 '17 13:08 juanpmarengo

Still getting this bug with latest:

cli packages: (E:\dev\circles_testnet_v2\node_modules)

@ionic/cli-plugin-cordova       : 1.6.2
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-plugin-proxy         : 1.4.1
@ionic/cli-utils                : 1.7.0
ionic (Ionic CLI)               : 3.7.0

global packages:

Cordova CLI : 7.0.1

local packages:

@ionic/app-scripts : 2.1.3
Cordova Platforms  : android 6.2.3 browser 4.1.0 ios 4.4.0
Ionic Framework    : ionic-angular 3.5.3

System:

Node : v6.11.2
OS   : Windows 8.1
npm  : 4.1.2

edzillion avatar Aug 08 '17 08:08 edzillion

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.

wowkucko avatar Jan 31 '18 08:01 wowkucko

Not I @wowkucko

edzillion avatar Jan 31 '18 21:01 edzillion

getting this too

miguel-sobong avatar Feb 13 '18 03:02 miguel-sobong

same here.. and I am stuck in the middle of a project.

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0 

local packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 7.0.0 browser 5.0.3
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node              : v9.4.0
npm               : 5.6.0 
OS                : macOS High Sierra

yohoprashant avatar Mar 22 '18 08:03 yohoprashant

I am facing still this issue when keyboard open, my slides go up and didn't show, until keyboard hide.

shehrazjazib avatar May 18 '18 23:05 shehrazjazib

any solution?

jdnichollsc avatar May 30 '18 15:05 jdnichollsc