Ionic noob trying to install and use plugin

#1

Hi guys, I’m picking up with a project that is already half way completed and Ihavenoideawhatimdoing.jpg. I need to hide the keyboard on mobile when an input field is focused, either manually or automatically.

I’ve installed this package https://www.npmjs.com/package/hide-keyboard

I imported the library and added it to my imports on app.modules.ts and then added the property to my ion-input element but the keyboard still pops up. Obviously I’m missing something here.

What is the AppComponent in the declarations and does that have something to do with why my hide-keyboard library is not working?

Thanks

#2

You might like to see the docs.
You can use the close() event to hide the keyboard on input focus.

#3

I have read the docs and I have tried close(). It loses focus of the input field.