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.

keyboardDisplayRequiresUserAction acts as if it's always false

See original GitHub issue

Bug 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: image

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

github_iconTop GitHub Comments

1reaction
lilasquaredcommented, Apr 20, 2021

Pretty sure I just came across this issue and its almost 3 years later. Any chance this was ever looked at?

0reactions
github-actions[bot]commented, Oct 30, 2019

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

Read more comments on GitHub >

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

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