{ "id": "137804", "key": "AC-1032", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2014-12-31T00:07:33.000+0000", "created": "2014-10-08T16:18:30.000+0000", "labels": [ "TCSupportTriage", "focus", "textfield" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:22.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." } ], "description": "It is not possible to focus a TextField in newly opened window. Works fine in Classic Ti and it worked in Alloy too... (I can't say exactly in what version ,but it worked for sure...).\r\n\r\nindex.js\r\n{code:javascript}\r\nfunction openBlueWindow(e) {\r\n var win3 = Alloy.createController('bluewin').getView();\r\n $.win1.openWindow(win3);\r\n}\r\n\r\n$.win1.open();\r\n{code}\r\n\r\nindex.xml\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nblueWin.js\r\n{code:javascript}\r\nfunction closeWindow(){\r\n $.win3.close();\r\n}\r\n\r\n$.textField.focus();\r\n{code}\r\n\r\nblueWin.xml\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}", "attachment": [ { "id": "51965", "filename": "focusTextField.mov", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-14T15:10:52.000+0000", "size": 3279685, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "Alloy: Not possible to focus a TextField", "creator": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti 3.4.0, Alloy 1.5", "comment": { "comments": [ { "id": "327978", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi,\r\n\r\nWe tried to reproduce this issue with a sample test case. It’s not a valid bug. We’ve created a workaround for this issue.\r\n \r\nh5. TESTING ENVIRONMENT:\r\n\r\n Ti SDK 3.4.0.GA\r\n Ti CLI 3.4.0\r\n Alloy 1.5.1\r\n Mac OS X 10.9.5\r\n iOS v8.0\r\n\r\nh5. TEST CODE:\r\n\r\nindex.xml\r\n{code} \r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nindex.js\r\n{code} \r\nfunction openBlueWindow(e) {\r\n var win3 = Alloy.createController('blueWin').getView();\r\n $.win1.openWindow(win3); \r\n}\r\n$.win1.open();\r\n{code}\r\n\r\nblueWin.xml\r\n{code} \r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nblueWin.js\r\n{code} \r\n$.win3.addEventListener('open', function () {\r\n\t$.textField.focus();\r\n});\r\n{code}\r\n\r\nh5. STEPS TO TEST:\r\n\r\n- Create a simple alloy project.\r\n- Update project with test code\r\n- Run on iOS device/ simulator\r\n\r\nh5. EXPECTED RESULT:\r\n\r\nIt’s working as expected.\r\n\r\nThanks\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-10-14T04:53:06.000+0000", "updated": "2014-10-14T15:01:54.000+0000" }, { "id": "328030", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~sko]! \r\n\r\nCan you please take a look to the posted testcase and provide your feedback?\r\n\r\nBest Regards ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-10-14T15:02:50.000+0000", "updated": "2014-10-14T15:02:50.000+0000" }, { "id": "328033", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, I did try the exactly same workaround before I created this ticket. The thing is that there is some graphic issue when you try to focus a textfield on \"window open\" event. (See the attachment).\r\n\r\nAs I mentioned in the description (I am not sure on 100%) ,but I think that focusing was working before without any problem.", "updateAuthor": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-14T15:12:44.000+0000", "updated": "2014-10-14T15:13:09.000+0000" }, { "id": "337698", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Mauro Parra-Miranda, could you please tell me why did you again close an issue that wasn't resolved without any explanation? What is not possible to reproduce? I tested the issue again with Ti 3.4.1 and it still doesn't work. There is some graphic issue (blinking-flashing) when new window is opening using the workaround. I added a video to point out the problem.\r\n\r\nFocusing was working in an older SDK without any problem, so the functionality had to be broken. Why are reported issues just ignored? Thank you", "updateAuthor": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-31T13:02:45.000+0000", "updated": "2014-12-31T13:02:45.000+0000" }, { "id": "337699", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't test it now ,but I think that the issue is not working correctly only in Alloy. Classic Titanium should be alright ,so there has to be something wrong with it.", "updateAuthor": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-31T13:09:40.000+0000", "updated": "2014-12-31T13:09:40.000+0000" }, { "id": "341710", "author": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "body": "C'mon guys no answer, really? If that's how it works here then it is finally clear to me why Titanium has so many bugs...", "updateAuthor": { "name": "sko", "key": "sko", "displayName": "Matej", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-02T20:55:09.000+0000", "updated": "2015-02-02T20:55:09.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }