Keyboard hide and show


#1

I am using Keyborad native plug.When use keybord.onKeyboardShow() to hide button subscription waits until typing to hide button.Should ıt hide button as soon as keyboard shows up ?

home.ts

 this.platform.ready().then(()=>{
    this.keybord.onKeyboardShow().subscribe(()=>{this.reh=true})
      this.keybord.onKeyboardHide().subscribe(()=>{this.reh=false})

home.html
<button ion-button class="margin" [hidden]=reh round " >Test</button>

Thank you in Advance for your response


#2

@techsnake hello technake, I also have this issue with android in particular. When I build --prod and in View i don’t have the issue, but cordova keyboard plugin tends to be sticky. Maybe because i didn’t updated it in npm?


#3

So do you mean that it works fine at --prod mode?