Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2059] TextField focus doesn't work when TF isn't visible...

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2013-07-09T17:44:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsfocus, textfield
ReporterMatej
AssigneeShak Hossain
Created2013-07-04T08:39:10.000+0000
Updated2016-03-08T07:41:01.000+0000

Description

TextField focus doesn't work when TF isn't visible on a screen. *STEPS TO REPRODUCE?:* - Turn on app - When you stay on the top of a TableView you can see first TextField there focus work without any problem - Try to hide showed keyboard for first TextField and scroll/move to the bottom of a TableView (There focus doesn't work...) *SAMPLE:*
 
var win = Ti.UI.createWindow();
var table = Ti.UI.createTableView({ style: Ti.UI.iPhone.TableViewStyle.GROUPED });
var data = [];

for(i=0;i<20;i++)
{
	var row = Ti.UI.createTableViewRow({width: Ti.UI.FILL, height: Ti.UI.FILL});
	var tField = Ti.UI.createTextField({width: Ti.UI.FILL, height: "100%"});
	
	row.add(tField);
	data.push(row);
}


table.data = data;

win.add(table);
win.open();

setInterval(function(){ data[0].children[0].focus(); }, 3000);

Comments

  1. Daniel Sefton 2013-07-09

    Closing as duplicate of TC-2569.

JSON Source