@ferdinandferdinandfe wrote:
Hello,
first of all sorry if my question is stupid but I’m new to Ionic, Angular and TypeScript.
I’m desperately trying to hide the keyboard after the user hits ‘return’ from my search bar and nothing that I’ve tried so far worked.I’ve followed these steps https://ionicframework.com/docs/native/keyboard/ but whenever I call an instance, it doesn’t work.
For example :
this.keyboard.show()My “search.ts” has “
import { Keyboard } from '@ionic-native/keyboard'”constructor(public navCtrl: NavController, public navParams: NavParams, public api: ApiProvider, public keyboard: Keyboard) { }And wherever I call “keyboard.show()”
Can anybody explain me why ?
Thank you
Posts: 1
Participants: 1