Github user ccorcos commented on the issue:

    https://github.com/apache/cordova-plugin-wkwebview-engine/pull/37
  
    @SeanHub here's what I've learned so far:
    
    - you can call `.focus()` so long as its in the same tick as a user action. 
For example, you can call `.focus()` on an element synchronously in click event 
handler.
    
    - you can call `event.preventDefault()` on the mousedown event to prevent 
the input from being blurred
    
    Or if you want, you can use my fork and then`.focus()` just works!
    
    ```xml
    <plugin name="cordova-plugin-wkwebview-engine" 
spec="https://github.com/ccorcos/cordova-plugin-wkwebview-engine#e994874583d7e5f4ae1713643dbd8e01c60a0a03";
 />
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to