keyboardDisplayRequiresUserAction acts as if it's always false
See original GitHub issueBug description:
I’ve tested keyboardDisplayRequiresUserAction
set to true, false or unset. On test uri https://www.macrotrends.net/2616/president-trump-stock-market-performance, input box is always focused and keyboard always opens without user interactivity.
I tested this to be true on iPhone X on 12.3, iOS simulators 12.2 and 11.4.
To Reproduce:
<WebView
keyboardDisplayRequiresUserAction={true}
useWebKit={true}
originWhitelist={['*']}
source={{ uri: 'https://www.macrotrends.net/2616/president-trump-stock-market-performance' }}
/>
Expected behavior:
WebView
should behave this way only if keyboardDisplayRequiresUserAction={false}
explicitly
Screenshots/Videos:
Environment:
- OS: iOS
- OS version: 12.2, 12.3, 11.4
- react-native version: 0.59.8
- react-native-webview version: 6.1.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
keyboardDisplayRequiresUserA...
keyboardDisplayRequiresUserAction acts as if it's always false #595 ... input box is always focused and keyboard always opens without user ...
Read more >Programmatically focus on a form in a webview (WKWebView)
Make sure you call property on your WKWebView like this, let webView = WKWebView() webView.keyboardDisplayRequiresUserAction = false.
Read more >keyboardDisplayRequiresUserA...
keyboardDisplayRequiresUserAction. A Boolean value indicating whether web content can programmatically display the keyboard. iOS 6.0–12.0 Deprecated iPadOS ...
Read more >WebViewOptions - distriqt // NativeWebView
A Boolean value that determines whether HTML5 videos play inline or use the native full-screen controller. WebViewOptions. allowScrolling : Boolean = true. If...
Read more >Auto-focus Textbox while template loads - Ionic Forum
On building the project, 'KeyboardDisplayRequiresUserAction' is setting to true always in platforms/ios/config.xml even if I make it false ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Pretty sure I just came across this issue and its almost 3 years later. Any chance this was ever looked at?
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically