From 147380533c4825b89f780440046c353e59b1f717 Mon Sep 17 00:00:00 2001 From: Manu MA Date: Tue, 11 Dec 2018 16:29:55 +0100 Subject: [PATCH] fix(tab-bar): hide on keyboard events (#16688) fixes #16419 --- core/src/components/tab-bar/tab-bar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/components/tab-bar/tab-bar.tsx b/core/src/components/tab-bar/tab-bar.tsx index 6924f263e5..6466dd7777 100644 --- a/core/src/components/tab-bar/tab-bar.tsx +++ b/core/src/components/tab-bar/tab-bar.tsx @@ -51,14 +51,14 @@ export class TabBar implements ComponentInterface { /** @internal */ @Event() ionTabBarChanged!: EventEmitter; - @Listen('body:keyboardWillHide') + @Listen('window:keyboardWillHide') protected onKeyboardWillHide() { setTimeout(() => this.keyboardVisible = false, 50); } - @Listen('body:keyboardWillShow') + @Listen('window:keyboardWillShow') protected onKeyboardWillShow() { - if (this.el.getAttribute('slot') === 'bottom') { + if (this.el.getAttribute('slot') !== 'top') { this.keyboardVisible = true; } }