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
Unable to tap input field or any buttons on screen. #3400
Comments
Similar issue in react native app on Android only. Any updates? |
No updates so far. Was able to rule out being a Flutter issue though. |
@TreyThomas93 this #2243 (comment) fix the issue |
unfortunately I'm still facing this problem and nestedScrollEnabled didn't solve this problem |
The issue can be avoided by adding injecting manually the javascript in the html content instead of using the by changing const getHtml = () => `
<html><body><div><button onclick="handleClick()">click me</button></html>
`;
const injectedJavascript = `
function handleClick() {
window.alert('clicked');
}
`;
const Component = () => {
const html = getHtml();
return <WebView source={{ html, baseUrl: 'http://localhost' }} injectedJavascript={injectedJavascript} />
}; to const getHtml = (injectedJavascript) => `
<html><body><div><button onclick="handleClick()">click me</button><script>${injectedJavascript}</script></html>
`;
const injectedJavascript = `
function handleClick() {
window.alert('clicked');
}
`;
const html = getHtml(injectedJavascript)
const Component = () => {
const html = getHtml(injectedJavascript);
return <WebView source={{ html, baseUrl: 'http://localhost' }} />
}; I made a snack to reproduce the issue, however it seems to be fixed in the latest version of |
Bug description:
I am using the Jitsi Flutter SDK which uses RNCWebView for their Shared Documents screen, and when I run it on Android emulator, everything works fine. But when I run it on physical Android device, nothing on the screen is tappable except the back arrow in the appbar that closes the webview. Running flutter run -v, when I click on the Open Shared Document button and the webview opens, I get the following error:
Flutter Error Log
And when I run adb logcat for the same event I get the following:
ADB Error Log
To Reproduce:
As far as reproducible code, I don't have anything readily available because one must have an entire jitsi server running with Etherpad enabled and running. But if you do, then the steps to reproduce are:
Expected behavior:
That when the webview is opened, all UI components are responsive, reactive and clickable. Able to tap the body and a keyboard appears.
Environment:
I am using Jitsi Meet Flutter SDK version 0.3.0, and it look's like they are using "react-native-webview": "13.5.1" for webview.
Thanks!
The text was updated successfully, but these errors were encountered: