Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26836] iOS: HTML textfields inside webview do not open keyboard

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-02-19T10:49:05.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterSamir Mohammed
AssigneeUnknown
Created2019-02-19T10:29:57.000+0000
Updated2019-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

Comments

  1. Samir Mohammed 2019-02-19

    Ah sorry it turns out it was an issue with my simulator. (User error)

JSON Source