{ "id": "168426", "key": "AC-5030", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-06-16T18:34:38.000+0000", "created": "2017-06-15T16:06:00.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-16T18:34:38.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The following code show a problem between alert dialog and controller.\r\n\r\nI create an empty project, create an empty controller called 'test', then put this code in index.js\r\n\r\nWhen you click on the label, its text is changed to \"dialog open\"\r\nWhen you answer to the dialog, the label text is set to \"dialog closed\"\r\n\r\nBecause of the Alloy.createController() line , the click event is not triggered even if the dialog is closed. This happened very randomly (not at every time, I have to test it many time, by waiting few second before answer to the dialog).\r\nI noticed this behaviour very rarely (but it may occur) without the createController, and it happens more often when I put createController()\r\n\r\nuse case : I use the widget fokkezb.loading that create a controller, and sometimes I need to open a dialog alert.\r\n\r\n{code:java}\r\n\r\nfunction doClick(e) {\r\n Alloy.createController('test');\r\n\r\n var a = Titanium.UI.createAlertDialog({\r\n title : 'b',\r\n message : 'a',\r\n buttonNames : ['Y', 'N'],\r\n cancel : 1\r\n });\r\n a.addEventListener('click', function() {\r\n $.label.text = 'dialog closed';\r\n });\r\n $.label.text = 'dialog open';\r\n a.show();\r\n}\r\n\r\n$.index.open();\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Dialog box click not triggered", "creator": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS 10.3\r\nSDK 6.1.0.GA\r\n", "comment": { "comments": [ { "id": "422101", "author": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "body": "Seems this is due to the property true\r\n\r\nI set to true and didn't manage to reproduce the bug", "updateAuthor": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-15T20:23:58.000+0000", "updated": "2017-06-15T20:23:58.000+0000" }, { "id": "422103", "author": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "body": "This issue is related with TIMOB-24349 ...", "updateAuthor": { "name": "gduthieuw", "key": "gduthieuw", "displayName": "Guile", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-15T20:34:05.000+0000", "updated": "2017-06-15T20:34:05.000+0000" }, { "id": "422172", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks! So it does **not** work with {{run-on-main-thread}} set to {{true}}? I would like to close it as {{Duplicate}} then and put the related ticket on our list asap.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-16T18:33:04.000+0000", "updated": "2017-06-16T18:33:04.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }