question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Including input focus fix from cordova-plugin-wkwebview-engine

See original GitHub issue

Bug 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

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:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
u01jmg3commented, Oct 27, 2020

Thank @onderceylan who put me onto the fork @adaptabi created

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found