[TIMOB-14255] iOS: TextField keyboard doesn't maintain number/symbol view when in TableView if TextField doesn't have height set
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2017-06-26T20:35:26.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | keyboardtype, tableview, textfield |
Reporter | Justin Toth |
Assignee | Eric Merriman |
Created | 2013-06-17T14:53:36.000+0000 |
Updated | 2017-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.
Tested and confirmed on iOS 6 simulator with Ti SDK 3.2 CI.
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