[AC-4622] Android: click on text fields in table view rows, end up being focused on a different text field
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-11-21T20:36:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android |
Reporter | Trevor Chong |
Assignee | Shak Hossain |
Created | 2016-11-18T00:49:24.000+0000 |
Updated | 2016-11-21T20:36:48.000+0000 |
Description
When a table view row contains more than one text fields, clicking on the second text field in the table view row will cause the first text field in the row to be focused on instead.
Reproduce steps:
- copy code below into index.js of a new project, build
- tap on the second text field in the first row
Expected behavior:
- focus is on the second text field
Actual behavior:
- focus jumps back to the first text field
// index.js
var win = Ti.UI.createWindow();
var table = Ti.UI.createTableView();
var data = [];
for(var i = 0; i < 10; i++){
var tableRow = Ti.UI.createTableViewRow({
layout: "vertical"
});
for(var j = 0; j < 2; j++){
tableRow.add(Ti.UI.createTextField({
color: "#000",
borderColor: "#000",
borderWidth: "1dp",
width: "60dp"
}));
}
data.push(tableRow);
}
table.data = data;
var view = Ti.UI.createView();
view.add(table);
win.add(view);
win.open();
Attachments
File | Date | Size |
---|---|---|
index.js | 2016-11-18T00:45:13.000+0000 | 512 |
Hello, Thanks for your query. Would you please check this issue in the latest SDK and also send us proper instruction for reproducing this issue? Thanks
The issue is not happening on the latest release 6.0.0.GA. Verified with the below environment.