Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to focus the <WebView> #18965

Closed
3 tasks done
vladikoff opened this issue Apr 21, 2018 · 16 comments
Closed
3 tasks done

Add ability to focus the <WebView> #18965

vladikoff opened this issue Apr 21, 2018 · 16 comments
Labels
Component: WebView Related to the WebView component. Stale There has been a lack of activity on this issue and it may be closed soon. Type: Enhancement A new feature or enhancement of an existing feature.

Comments

@vladikoff
Copy link

vladikoff commented Apr 21, 2018

Environment

Environment:
OS: macOS High Sierra 10.13.2
Node: 8.10.0
Yarn: 1.3.2
npm: 5.8.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.1 AI-173.4697961

Packages: (wanted => installed)
react: ~16.2.0 => 16.2.0
react-native: ~0.54.2 => 0.54.2

Expected Behavior

The https://facebook.github.io/react-native/docs/webview.html WebView component should have a way to autofocus itself. Once the autofocus is triggered, the HTML elements that have autofocus attributes will be focused in the loaded

Actual Behavior

No API available at this time

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like your issue may be missing some necessary information. Can you run react-native info and edit your issue to include these results under the Environment section?

Thank you for your contributions.

@vladikoff
Copy link
Author

@react-native-bot sure buddy, here you go:

Environment:
  OS: macOS High Sierra 10.13.2
  Node: 8.10.0
  Yarn: 1.3.2
  npm: 5.8.0
  Watchman: 4.9.0
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: 3.1 AI-173.4697961

Packages: (wanted => installed)
  react: ~16.2.0 => 16.2.0
  react-native: ~0.54.2 => 0.54.2

@vladikoff
Copy link
Author

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest release, v0.55?

Thank you for your contributions.

@vladikoff
Copy link
Author

@react-native-bot yes, we just upgraded to v0.55 and this still is an issue

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest release, v0.55?

Thank you for your contributions.

@react-native-bot
Copy link
Collaborator

It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest release, v0.55?

@hbarylskyi
Copy link

@vladikoff I think you should try changing react-native versions in issue description for the bot to understand you :)

@ocyedwin
Copy link

@vladikoff I'm also facing issue and wonder if you've found any solution.

@vladikoff
Copy link
Author

@ocyedwin One solution i found was recompiling react-native from source and tweaking the WebView code so it requests focus

@ocyedwin
Copy link

@vladikoff Nice! Any intention sharing the tweak or even doing a PR?

@vladikoff
Copy link
Author

@ocyedwin posted a solution in https://stackoverflow.com/a/50635924/216672 Let me know if you need help

@TryImpossible
Copy link

@vladikoff There is a solution in react-native-enhance-webview,you can know it if you need

@vladikoff
Copy link
Author

@TryImpossible nice! thank you

@stale
Copy link

stale bot commented Aug 30, 2018

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 30, 2018
@stale
Copy link

stale bot commented Sep 6, 2018

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Sep 6, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Sep 6, 2018
@hramos hramos added the Type: Enhancement A new feature or enhancement of an existing feature. label Mar 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: WebView Related to the WebView component. Stale There has been a lack of activity on this issue and it may be closed soon. Type: Enhancement A new feature or enhancement of an existing feature.
Projects
None yet
Development

No branches or pull requests

6 participants