You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/08/01 13:02:00 UTC

[jira] [Commented] (CB-10376) autofocus doesn't work with WKWebView engine plugin

    [ https://issues.apache.org/jira/browse/CB-10376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16565275#comment-16565275 ] 

ASF GitHub Bot commented on CB-10376:
-------------------------------------

steodor commented on issue #37: CB-10376, CB-12037: (ios) Fix bug where WKWebView doesnt respect the KeyboardDisplayRequiresUserAction setting
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/pull/37#issuecomment-409566433
 
 
   https://www.npmjs.com/package/cordova-plugin-wkwebview-inputfocusfix works again, like a charm. Thank you very much @Hirbod and @onderceylan !

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> autofocus doesn't work with WKWebView engine plugin
> ---------------------------------------------------
>
>                 Key: CB-10376
>                 URL: https://issues.apache.org/jira/browse/CB-10376
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-wkwebview-engine
>    Affects Versions: 5.4.1
>         Environment: Tested on iPhone 6 plus and iPhone 5S both running iOS 9.2 
>            Reporter: David Douglas
>            Assignee: Shazron Abdullah
>            Priority: Minor
>              Labels: iOS, triaged
>
> When using WKWebView engine the iOS Soft Keyboard fails to automatically open when the 'autofocus' attribute is set.
> How to recreate:
> 1. Add platform and keyboard plugin
> {code}
> cordova platform add ios@4.0.1
> cordova plugin add cordova-plugin-keyboard@1.1.3 --save
> {code}
> 2. Update iOS keyboard to enable focus commands in 'config.xml':
> {code}
> <preference name="KeyboardDisplayRequiresUserAction" value="false" />
> {code}
> 3. Add textarea to test with autofocus attribute.
> {code}
> <textarea placeholder="Edit text" autofocus></textarea>
> {code}
> (Note: Before adding the WKWebView engine plugin the UIWebView will automatically open the Soft Keyboard.)
> 4. Add the WKWebView engine plugin
> {code}
> cordova plugin add cordova-plugin-wkwebview-engine@1.0.1 --save
> {code}
> What happens:
> Nothing.
> What should happen:
> The soft keyboard should open automatically (the same a UIWebView)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org