This plugin used to be deprecated, but we need to reinstate it since iOS 13 broke the autoFocus selector again. This means that the previously integrated changes in the official plugins (e.g. cordova-plugin-wkwebview-engine
version 1.2.1
) no longer work on iOS 13 so the same focus bug has regressed. Apply this plugin temporarily until the issue is fixed in the main repositories.
Add this to your package.json
:
{
"dependencies": {
"cordova-plugin-wkwebview-inputfocusfix": "git+https://github.com/adaptabi/cordova-plugin-wkwebview-inputfocusfix"
},
"cordova": {
"plugins": {
"cordova-plugin-wkwebview-inputfocusfix": {}
},
}
}
Then just clean your platforms/ios
directory and rebuild.
Once the main wkwebview
fixes this issue for iOS 13 as well (see links below), you can stop using this plugin.
This plugin was introduced as a temporary fix for the input focusing issue raised on main WKWebView repositories of Apache and Ionic. As the changes are merged to the main repositories - apache/cordova-plugin-wkwebview-engine#37 and ionic-team/cordova-plugin-wkwebview-engine#171, the plugin is deprecated and has no effect on fixing any focus issues anymore.