# Hide ion footer when keyboard opens Ionic 5

**URL:** <https://forum.ionicframework.com/t/hide-ion-footer-when-keyboard-opens-ionic-5/194217>\
**Category:** ionic-v3\
**Created:** [August 10, 2020, 4:38pm UTC](https://forum.ionicframework.com/t/hide-ion-footer-when-keyboard-opens-ionic-5/194217 "2020-08-10T16:38:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Astrid5](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@Astrid5](https://forum.ionicframework.com/u/Astrid5)\
**Post date:** [August 10, 2020, 4:38pm UTC](https://forum.ionicframework.com/t/hide-ion-footer-when-keyboard-opens-ionic-5/194217/1 "2020-08-10T16:38:45Z")

</div>

I’m using Ionic 5 and I need help on hiding the footer when the keyboard opens. I’m using the following:

```auto
ionViewWillEnter() {
        this.keyboard.onKeyboardWillShow().subscribe(() => {
            this.isKeyboardHide = false;
        });
        this.keyboard.onKeyboardWillHide().subscribe(() => {
            this.isKeyboardHide = true;
        });
    }

```

and HTML:

```auto
<ion-footer [class.ion-hide]="!isKeyboardHide" class="ion-no-border">
<code></code>
</ion-footer>

```

It actually does hide when clicking on an Input, but if I close the keyboard, the footer doesn’t come back, and if I click on a input and the keyboard opens again, the footer appears above the keyboard and never hide anymore. Can someone help me please?
