I wanted to have an ion-input that will be focused and the keyboard should not appear. Is there any way or is it possible? Thank you!
Is there any way to hide keyboard when focusing an ion-input?
5.8k Views Asked by Ace At
2
There are 2 best solutions below
1
Liam Ferris
On
I tried Kevin's answer and got the same 'Keyboard' refers to a value, but is being used as a type here. Did you mean 'typeof Keyboard'? issue that Mitesh got.
I resolved this with:
import { Keyboard } from '@ionic-native/keyboard/ngx'
@Component({
selector: 'app-upload-root',
templateUrl: 'upload-root.page.html',
styleUrls: ['upload-root.page.scss'],
providers: [Keyboard]
})
constructor(private keyboard: Keyboard)
this.keyboard.hide();
Not sure how or why this was needed, but it works for me.
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 IONIC3
- Ionic 3 issue while generating AAB file
- ionic 5 - error ionic-orm3 Property 'filter' in type 'EntityMetadataCollection'
- Ionic storage-angular error: Can't resolve '@angular/common' in storage-angular/fesm
- Last Update for old ionic 3 App with angular 5
- Ionic angular running issue in android?
- Issue with SonarQube showing ChromeHeadless error
- Use of config.xml in ionic project with capacitor
- Ionic 3.9.5 Reactive Forms not working when virtual keyboard is displayed
- How to build AAB file for Google play from an ionic 3 project
- IONIC v3 with API 33 Android
- Ionic 3 and Android SDK 33 - Opening Camera not working
- How to set "search" icon in the navigation tab bar in Ionic?
- -Ionic Project Requesting For Notification Permission
- Ionic framework error: spawn unknown error
- ionic 3 'ion-item' is not a known element: 1. If 'ion-item' is an Angular component,
Related Questions in SETFOCUS
- SetFocus is placing focus on incorrect textbox
- SetFocus has no effect in Userform for Textbox
- Excel VBA textbox userform won't show the blinking cursor in the textbox although the textbox is active
- How do I set the focus on entering an axes in matplotlib?
- OpenCV on Android focus on upper part
- How to ignore (undo) the WM_SETFOCUS for the new window and WM_KILLFOCUS for the old one, keeping the rest of the processing?
- How to know if the mouse clicked once on a window's title bar?
- How do I SetFocus when the focus is on the window list?
- is there Salience and setFocus like feature in MVEL expression Just like Drools
- tkinter focus_set() not setting focus
- How to Create a Focus and Select Barcode Textbox in the UserControl Form in vb.net
- Setting focus to the next field using jQuery onchange event
- Excel .Setfocus Jumping to wrong Control
- Anomaly with MS Forms Focus Indication Using VBA SetFocus
- Focus always goes to link on OffCanvas component
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?
yes, install this plugin -> https://ionicframework.com/docs/native/keyboard/
html
ts