Keyboard overlaps the text input when the input is placed inside an <ion-footer>
Short description of the problem:
When an <ion-input type="text"> is placed inside an <ion-toolbar> in an <ion-footer>, the iOS keyboard overlaps text inputs placed in an <ion-footer> and the entire page "jumps" when the input receives focus.

What behavior are you expecting?
I would expect the text input to be shown above the keyboard so the user can see what they're typing, similar to what happens in the Messages app on iOS. I also wouldn't expect the entire page to jump down immediately after the input receives focus.
Steps to reproduce:
- Create a new project with the
blanktemplate - Add the following to
home.html, run the app on iOS, and focus on the text input
<ion-footer>
<ion-toolbar>
<ion-input type="text" placeholder="Add a message..."></ion-input>
</ion-toolbar>
</ion-footer>
Which Ionic Version? 1.x or 2.x 2.x
Run ionic info from terminal/cmd prompt: (paste output below)
Cordova CLI: 6.2.0 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.10 Ionic CLI Version: 2.0.0-beta.31 Ionic App Lib Version: 2.0.0-beta.17 ios-deploy version: 1.8.6 ios-sim version: 5.0.8 OS: Mac OS X El Capitan Node Version: v4.2.3 Xcode version: Xcode 7.3.1 Build version 7D1014
I just joined the party and I can't believe how long everyone has been waiting on this. This seems like such an essential thing to get right. How have people been dealing with this in the meantime?
@borys You saved my day!!!! Good job, works well. Thanks :+1: https://github.com/ionic-team/ionic/issues/7149#issuecomment-246965922
I have a related issue with the keyboard, first I had the problem with the overlaps on footer and after installing the plugging XKWebView the footer doesn't be hidden anymore, but when keyboard is open an space is added above it (between keyboard and footer)
Here is the image:

Have someone this issue? How can I fix it? I'm new on development with Ionic. Help!
@dulcelariz You can fix that by disabling the keyboard scroll.
- Install
ionic native keyboardplugin
$ ionic cordova plugin add ionic-plugin-keyboard
$ npm install --save @ionic-native/keyboard
- Then disable keyboard scroll in your component
constructoror inionViewDidLoadobserver
this.keyboard.disableScroll(true);
Please note: make sure to run it after platform ready. You can use this.platform.ready() promise to do that
- Disable scroll assist in
ionicModule
IonicModule.forRoot(MyApp, { scrollAssist: false }),
And make sure the footer you added in ion-footer.
That's it.
@renjithvk thanks for your help, I did what you said and the issue still there. 😢
@dulcelariz I had that kind of issue. I fixed it by did that. Please try:
Disable scroll assist in ionicModule (app.module.ts)
IonicModule.forRoot(MyApp, { scrollAssist: false }),
Please check the comment https://github.com/ionic-team/ionic/issues/7149#issuecomment-356505112 I've updated it with some more points. Hope it will help you 👍
@renjithvk I tried what you did and the issue continue happening
This is my ionic info:
Will it be related to this?

@dulcelariz I'm sorry to hear that. I'd solved by did that.
This is my ionic info.

Still working with ionic 3 with @borys solution (https://github.com/ionic-team/ionic/issues/7149#issuecomment-246965922)
Ionic Info
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : android 6.4.0 ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
ios-deploy : 1.9.2
Node : v8.9.3
npm : 5.7.1
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
Environment Variables:
ANDROID_HOME : Users/gobae/Library/android/sdk
Misc:
backend : pro
The proposed solution only applies to ios it seems but what about android? I am using the ionic cordova keyboard plugin and this isnt working.
@borys solution worked for me.But the transition is not so smooth in my case.Any way i can achieve that?
Just by installing this plugin https://github.com/ionic-team/cordova-plugin-ionic-keyboard fixed the issue for me
Add https://ionicframework.com/docs/native/keyboard/ plugin to ionic application and add this imports in your module.ts file
IonicModule.forRoot (MyApp, {
scrollPadding: false,
scrollAssist: true,
autoFocusAssist: true
})
Thanks for the issue! We have moved the source code and issues for Ionic 3 into a separate repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.
Thank you for using Ionic!
Thanks for the issue! We have moved the source code and issues for Ionic 3 into a separate repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.
Thank you for using Ionic!
Issue moved to: https://github.com/ionic-team/ionic-v3/issues/117