I am new to ionic framework 1. I have been developing an app. But, I can't figure out how do I disapear the keyboard on screen touch. When I fill out any form it seems that some fields are hiding under the keyboard. How do I resolve it? I have tried removing and adding the keyboard plugin. But, it didn't work.
Hiding ionic keyboard on screen touch
507 Views Asked by camoflage At
2
There are 2 best solutions below
1
Rohit Gupta
On
You have mentioned that you are studying ionic framework 1 but Ionic2 is latest so you should go for it. Here is the code to hide the keyboard in Ionic 2:
In Constructor definition,put following
constructor(private keyboard: Keyboard){
}
And where ever you want to close the keyboard, execute following code:
this.keyboard.close();
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in IONIC-FRAMEWORK
- Firebase link existing user to anonymous account?
- Ionic Angular Standalone ion-icon are not showing at all
- Unable to run ionic app on Android emulator - [error] ADBs is unresponsive after 5000ms
- How should I filter Observables the "Right Way" with RxJs in Angular 17?
- Ionic/Capacitor: Background Location Tracking on iOS and Android?
- Best Approach for Implementing Video Selection from Gallery/Files in Ionic-React with Capacitor
- <video> tag with downloaded path in ionic ios not loads the video
- How do I record that this ionic checkbox has been checked by the user?
- Ionic 5 angular sharing a component between two modules
- mergeDebugResources FAILED
- Issue saving generated image to local filesystem in iOS using Capacitor
- Detect clickable areas within <img> tag in Ionic project
- Whitelisting Ionic app in Salesforce Org for CORS/CSP
- How to Polyfill node core modules in webpack 5 using ionic capacitor angular
- I'm developing an Android, but I can't see my "console.log" in logcat
Related Questions in IONIC-KEYBOARD
- Keyboard does not change appearance in iOS dark mode
- Ionic keyboard.isVisible property does not control element visibility properly
- ionic 4 keyboard pushes the content
- issue in Ionic Keyboard ion-input focus
- Ionic 4, Keyboard moves content
- Default iphone keyboard does not close for entire application if it is opened in iframe in ionic 3
- Ion-footer does not get pushed up when keyboard is visible (ios and android)
- Ionic iOS input field is getting hidden behind keyboard
- Is there any way to hide keyboard when focusing an ion-input?
- How to hide ionic keyboard in Auto focus
- Cordova plugin ionic keyboard crashes the layout
- Keyboard not opening second time in ionic 3 app with ion item
- Ionic 2 - Keyboard Not Hiding on Form Input(text area). Issue present in iOS devices, android works fine
- Ionic2 hide keyboard but keep the input focused
- Click on a button within an ion-footer doesn't execute (click) function at first
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Just copy/paste following function in your code and call whenever you want to close keyboard.