[Webkit-unassigned] [Bug 229600] New: WKWebView: cannot become first responder using focus() in JavaScript or native becomeFirstResponder() method
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 26 21:45:35 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=229600
Bug ID: 229600
Summary: WKWebView: cannot become first responder using focus()
in JavaScript or native becomeFirstResponder() method
Product: WebKit
Version: Safari 14
Hardware: iPhone / iPad
OS: iOS 13
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dh.chong at outlook.com
CC: wenson_hsieh at apple.com
For example, if we'd like to build a web based text editor, we'd like to automatically focus on the text input area in `UIViewController.viewDidAppear`.
However, we cannot build behavior like this using public API. For example, all these won't work:
- Calling `htmlElement.focus()` does nothing.
- `WKWebView.becomeFirstResponder()`
The community is trying to explore how to work around this missing feature: https://stackoverflow.com/questions/32449870/programmatically-focus-on-a-form-in-a-webview-wkwebview/48623286#48623286
This can be reproduced on iOS 13 to iOS 15 beta.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210827/f11ba52b/attachment.htm>
More information about the webkit-unassigned
mailing list