[TIMOB-26836] iOS: HTML textfields inside webview do not open keyboard
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | None |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2019-02-19T10:49:05.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | iOS |
| Labels | n/a |
| Reporter | Samir Mohammed |
| Assignee | Unknown |
| Created | 2019-02-19T10:29:57.000+0000 |
| Updated | 2019-02-19T10:49:05.000+0000 |
Description
When opening a html page that contains textfields inside a webview, clicking on the textfields does not open the keyboard on iOS but on Android the keyboard does open up.
*Code to reproduce*
app.js
var win = Ti.UI.createWindow();
var web = Ti.UI.createWebView({
height: Ti.UI.FILL,
width: Ti.UI.FILL,
//url: 'textfield.html'
url: 'test.html'
});
win.add(web);
win.open();
test.html
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
-->
<meta name="viewport" content="width=device-width, user-scalable=no" />
</head>
<body>
<input name="yyy" id="yyy"placeholder="yyy" value="yyy" type="text"/>
</body>
</html>
*Expected result*
Keyboard should open when clicking in the textfield
*Actual result*
Keyboard does not open up when clicking in the keyboard (Android it works fine)
*Note** This may only be an issue on the iOS simulators
Ah sorry it turns out it was an issue with my simulator. (User error)