Including input focus fix from cordova-plugin-wkwebview-engine
See original GitHub issueBug Report
Problem
I realise Cordova iOS 6.1.0
was released with its own copy of the WKWebView engine. I just wanted to know whether fixes previously included in cordova-plugin-wkwebview-engine
for fixing input focus will be incorporated into this repo?
I also realise that KeyboardDisplayRequiresUserAction
was part of the now deprecated UIWebView and in order to get similar functionality on WKWebView requires swizzling private methods. This means any fix can break if Apple decide to change their code.
What is expected to happen?
The keyboard should show when focusing an input element.
document.querySelector('input').focus()
What does actually happen?
The keyboard does not show when focusing an input element.
Information
cordova-plugin-wkwebview-engine
- Open bug report that states that this is still a problem on iOS
12.2
- Open PR providing a fix for iOS
13
- Open bug report that states that this is still a problem on iOS
cordova-plugin-ionic-webview
- Another issue stating that the problem still exists on iOS
13
- Another issue stating that the problem still exists on iOS
Environment, Platform, Device
iOS 12.4.8
Version information
Cordova 10.0.0
Cordova iOS 6.1.0
Checklist
- I searched for existing GitHub issues
- I updated all Cordova tooling to most recent version
- I included all the necessary information above
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
cordova-plugin-wkwebview-inputfocusfix-ios15 - npm
This plugin was introduced as a temporary fix for the input focusing issue raised on main WKWebView repositories of Apache and Ionic. As...
Read more >cordova-plugin-wkwebview-inputfocusfixx - npm package | Snyk
THIS PLUGIN IS DEPRECATED! This plugin was introduced as a temporary fix for the input focusing issue raised on main WKWebView repositories of...
Read more >WKWebView and input.focus() - AppStudio
Cordova plugin for fixing auto focus issue of html elements on WKWebView - onderceylan/cordova-plugin-wkwebview-inputfocusfix.
Read more >Cordova-plugin-wkwebview-inputfocusfix NPM | npm.io
cordova -plugin-wkwebview-inputfocusfix. Cordova plugin for fixing auto focus issue of html elements on WKWebView. Currently WKWebView doesn't focus on ...
Read more >[GitHub] [cordova-ios] u01jmg3 commented on issue #972: Including ...
... on issue #972: Including input focus fix from cordova-plugin-wkwebview-engine · GitBox Tue, 27 Oct 2020 13:43:25 -0700. u01jmg3 commented on issue #972: ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank @onderceylan who put me onto the fork @adaptabi created
For iOS 13+: https://github.com/adaptabi/cordova-plugin-wkwebview-inputfocusfix