CRAlpha / CRAlpha/react-native-wkwebview

Auto Focusing input tag without user interaction after closing the Modal view

Open
#169 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
637
Forks
263
PR merge metrics
No merged PRs in 30d

Description

When you open page with an input tag where AutoFocus is set as true, Like this [link](https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_autofocus) - So, when you first load this link, and after that, without interact the webview, if you open and Modal view, and then close the modal view, it will automatically auto focusing the input field.
But according to the spec the webview should not auto focus without any user interaction. I think this is a bug, it only happens if you open a modal view and then close it.

You can see some evidence video here
![wkwebview-bug](https://user-images.githubusercontent.com/14098612/43057013-7c306d52-8e7a-11e8-9a5e-3eaad57eaea2.gif)

Can anyone explain me why is this happening?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.