Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4622] Android: click on text fields in table view rows, end up being focused on a different text field

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2016-11-21T20:36:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid
ReporterTrevor Chong
AssigneeShak Hossain
Created2016-11-18T00:49:24.000+0000
Updated2016-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

FileDateSize
index.js2016-11-18T00:45:13.000+0000512

Comments

  1. Mostafizur Rahman 2016-11-20

    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
  2. Sharif AbuDarda 2016-11-21

    The issue is not happening on the latest release 6.0.0.GA. Verified with the below environment.
       Operating System
         Name                        = Mac OS X
         Version                     = 10.11.6
         Architecture                = 64bit
         # CPUs                      = 4
         Memory                      = 8589934592
       
       Node.js
         Node.js Version             = 4.2.2
         npm Version                 = 2.14.7
       
       Titanium CLI
         CLI Version                 = 5.0.10
       
       Titanium SDK
         SDK Version                 = 6.0.0.GA
         Target Platform             = android
       

JSON Source