{ "id": "61958", "key": "TIMOB-1326", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-06-22T13:01:06.000+0000", "created": "2011-04-15T02:49:28.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "enabled", "focus", "ios", "text", "widget" ], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T22:41:57.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

only happens on 3.1.x.

\n

from customer ticket:

\n

http://developer.appcelerator.com/helpdesk/view/29721

\n

code:
\nvar win = Ti.UI.createWindow();
\nvar notesText = Titanium.UI.createTextArea({

\n
\nvalue: \"location_notes_go_here\",\ntextAlign:'left',\nenabled:false,\nfont: {fontSize: 12, fontWeight:'bold'}, \ncolor:'#000',\ntop:10,\nbottom:5,\nleft:10,\nwidth:300,\nheight:100,\nkeyboardType:Titanium.UI.KEYBOARD_DEFAULT,\nreturnKeyType:Titanium.UI.RETURNKEY_DONE\n
\n

}); win.add(notesText);
\nvar b =\nTi.UI.createButton({text:'enable',height:30,width:200});
\nwin.add(b);

\n

b.addEventListener('click', function()
\n{

\n
\nnotesText.enabled = (notesText.enabled)?false:true;\n
\n

});

\n

win.open();

{html}", "attachment": [], "flagged": false, "summary": "textArea.enable triggers focus of text area", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125348", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Gonna bump. This could very well be an Apple bug, but there\nmight be a workaround. 3.1.x support is also becoming increasingly\nirrelevant.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:49:29.000+0000", "updated": "2011-04-15T02:49:29.000+0000" }, { "id": "199790", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Used this code to test. Did not see any focus or blur events from text area on changing enabled\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar notesText = Titanium.UI.createTextArea({\r\n\tvalue: \"location_notes_go_here\",\r\n\ttextAlign:'left',\r\n\tenabled:false,\r\n\tfont: {fontSize: 12, fontWeight:'bold'}, \r\n\tcolor:'#000',\r\n\ttop:10,\r\n\tbottom:5,\r\n\tleft:10,\r\n\twidth:300,\r\n\theight:100,\r\n\tkeyboardType:Titanium.UI.KEYBOARD_DEFAULT,\r\n\treturnKeyType:Titanium.UI.RETURNKEY_DONE\r\n}); \r\nwin.add(notesText);\r\nvar b = Ti.UI.createButton({title:'enable',height:30,width:200});\r\nwin.add(b);\r\n\r\nb.addEventListener('click', function()\r\n{\r\n\tnotesText.enabled = (notesText.enabled)?false:true;\r\n});\r\n\r\n\r\nnotesText.addEventListener('focus',function(e){\r\n\tTi.API.info('FOCUS ON TEXT AREA');\r\n})\r\nnotesText.addEventListener('blur',function(e){\r\n\tTi.API.info('BLUR ON TEXT AREA');\r\n})\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-22T13:01:06.000+0000", "updated": "2012-06-22T13:01:06.000+0000" }, { "id": "410816", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T22:41:57.000+0000", "updated": "2017-03-09T22:41:57.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }