Keyboard pushes elements out of top of view?

For me the Keyboard.disableScroll(true) just work in the ionViewDidEnter…

ionViewDidEnter() {
    this.platform.ready().then(() => {
      Keyboard.disableScroll(true);
    });
}

ionViewWillLeave() {
    this.platform.ready().then(() => {
      Keyboard.disableScroll(false);
    });
}

And remember to add in your NgModule:

IonicModule.forRoot(MyApp, { scrollAssist: false, autoFocusAssist: false } ),
6 Likes