I'm trying to hide the footer of my Ionic 3 app when the keyboard is open,
i've followed the steps found on official documentation and also on this question's accepted answer: Hide tabs on keyboard open
I've correctly installed the keyboard plugin and imported it in app.module.ts, i have this code in app.component.ts:
this.platform.ready().then(() => {
this.keyboard.onKeyboardShow().subscribe(() => {
document.body.classList.add('keyboard-is-open');
});
this.keyboard.onKeyboardHide().subscribe(() => {
document.body.classList.remove('keyboard-is-open');
});
});
i've correctly set the css class :
body.keyboard-is-open .hideElementOnKeyboardShown{
display: none;
}
and added this "hideElementOnKeyboardShown" class to the footer, what's happening now is that the footer disappears for few milliseconds (i guess the time that it takes for the keyboard to show up) and then reappears on top of the keyboard, partially hiding some input fields on the page.
I need to find a way to hide the footer, or just to keep it at the bottom of the page, covered by the keyboard (i've also tried with z-index but it isn't working)