[TIMOB-17017] Android: WebView will show keyboard momentarily on start
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2014-05-23T19:02:18.000+0000 |
| Affected Version/s | Release 3.2.3 |
| Fix Version/s | 2014 Sprint 10, 2014 Sprint 10 SDK, Release 3.3.0, Release 3.4.0 |
| Components | Android |
| Labels | android, module_webview, qe-testadded, regression |
| Reporter | Michael Gangolf |
| Assignee | Vishal Duggal |
| Created | 2014-05-19T10:16:14.000+0000 |
| Updated | 2014-05-23T21:23:59.000+0000 |
Description
In 3.2.3 the following code will open a webview and the keyboard on android:
XML
<Alloy>
<Window class="container">
<WebView id="webview"></WebView>
</Window>
</Alloy>
TSS:
"#webview":{
enableZoomControls: false,
left: 0,
right: 0,
bottom: 0,
top: 0,
userAgent: "MobileApp",
scalesPageToFit: true
}
JS:
$.webview.url = url;
will automatically open the keyboard on Android with 3.2.3.
Switching back to 3.2.2 won't show the keyboard like it should be.
I was able to see the keyboard popup for just a moment before the url got opened.
var webview = Titanium.UI.createWebView({url:'http://www.appcelerator.com'}); var window = Titanium.UI.createWindow(); window.add(webview); window.open({modal:true});Moving this ticket to engineering as I can reproduce this issue with a very simple test case. Same test works fine on the same device with 3.2.2 release so it is a regression.
Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/5725 3_3_X - https://github.com/appcelerator/titanium_mobile/pull/5726
Verified the fix. The keyboard does not popup when a webview is launched. Closing. Environment: Appc Studio : 3.3.0.201405211748 Ti SDK : 3.3.0.v20140523120121 Mac OSX : 10.8.5 Alloy : 1.4.0-alpha4 CLI - 3.3.0-alpha5 Code Processor: 1.1.1 Samsung Galaxy S4 running android 4.2.2