Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

How to hide the keyboard?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>