Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14255] iOS: TextField keyboard doesn't maintain number/symbol view when in TableView if TextField doesn't have height set

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-06-26T20:35:26.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsiOS
Labelskeyboardtype, tableview, textfield
ReporterJustin Toth
AssigneeEric Merriman
Created2013-06-17T14:53:36.000+0000
Updated2017-06-26T20:35:26.000+0000

Description

*Problem* On iOS, when you create a Textfield that doesn't have a height set and then add it to a TableView, the keyboard doesn't perform the standard way. When you press the ".?123" key, it shows the number/symbol keyboard view. *Actual result* After pressing one key it goes back automatically to the "ABC" keyboard, which provides for a poor UX when you want to type in multiple numbers. *Expected result* The default behavior is for it to stay in this keyboard view until you press "ABC" to go back to the letters keyboard. *Test case*
var win = Ti.UI.createWindow();

win.add(Ti.UI.createTextField({
	top : 0,
	left : 0,
	right : 0,
	borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED
}));

var table = Ti.UI.createTableView({
	top : 60,
	left : 0,
	right : 0,
	height : 50
});
var row = Ti.UI.createTableViewRow({
	height : 50
});
row.add(Ti.UI.createTextField({
	top : 0,
	left : 0,
	right : 0,
	borderStyle : Ti.UI.INPUT_BORDERSTYLE_ROUNDED
}));
table.setData([row]);
win.add(table);

win.open();
*Note* Notice that the top textfield, which is not within the tableview, performs correctly. The textfield below that, which is within the tableview, doesn't maintain the ".?123" keyboard as you type. *Workaround* Add a height to the textfield within the tableview and then it will maintain the proper keyboard view.

Comments

  1. Daniel Sefton 2013-06-17

    Tested and confirmed on iOS 6 simulator with Ti SDK 3.2 CI.
  2. Lee Morris 2017-06-26

    I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170623141152 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source