{ "id": "142016", "key": "TIMOB-18281", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2014-12-29T19:24:30.000+0000", "created": "2014-12-22T10:10:31.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-3.5.0" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [ { "id": "45264", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "143676", "key": "TIMOB-18477", "fields": { "summary": "IOS: A Popover will swallow any OptionDialog created", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T17:13:42.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": "This is a Regression as the issue does not occur on 3.4.1.GA\r\n\r\nThe popover with an option dialog in it, does not dismiss when clicked outside the popover. This happens only when the option dialog is visible in the popover\r\n\r\nSteps to Reproduce;\r\n1. Create and launch the app with code below\r\n2. Click on 'Click me' button. The popover is shown\r\n3. On the popover, click on the 'Click for Option Dialog' button. The option dialog is shown in the popover.\r\n4. Now, with option dialog still shown, click outside the popover to dismiss it\r\n\r\nActual Result:\r\nThe popover does not get dismissed till the option dialog is shown\r\n\r\nExpected Result:\r\nThe popover should dismiss whenever we click outside the popover.\r\n\r\n{code}\r\nvar _window=Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle : 'Click me'\r\n});\r\n\r\nbtn.addEventListener('click', function(e) {\r\n\r\n\tvar popWin = Ti.UI.createWindow({\r\n\t\tbackgroundColor : 'white'\r\n\t});\r\n\r\n\tvar popBtn = Ti.UI.createButton({\r\n\t\ttitle : 'Click for Option Dialog'\r\n\t});\r\n\r\n\tpopWin.add(popBtn);\r\n\r\n\tvar pop = Ti.UI.iPad.createPopover({\r\n\t\tcontentView : popWin\r\n\t});\r\n\r\n\tpopBtn.addEventListener('click', function(e) {\r\n\t\tTi.UI.createOptionDialog({\r\n\t\t\toptions : ['a', 'b']\r\n\t\t}).show({\r\n\t\t\tview : popBtn\r\n\t\t});\r\n\t});\r\n\r\n\tpop.show({\r\n\t\tview : btn\r\n\t});\r\n});\r\n\r\n_window.add(btn);\r\n_window.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Popover with OptionDialog does not dismiss when option dialog is open", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.5.0.RC\r\nStudio: 3.4.1.201410281743\r\nCLI: 3.4.1\r\nAlloy: 1.5.1\r\nDevice: iPad mini3(v8.1), iPad2(v7.1.2)", "comment": { "comments": [ { "id": "337579", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We explicitly disabled the dismissal of popovers when they are acting as presenters of Modal View Controllers. In iOS8 option dialogs are ViewControllers so the popover will not be dismissed as long as the option dialog is up.\r\n\r\nIf we do dismiss the popover we will run into memory leaks and rotation problems", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-29T19:24:30.000+0000", "updated": "2014-12-29T19:24:30.000+0000" }, { "id": "413729", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T17:13:42.000+0000", "updated": "2017-03-20T17:13:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }