{ "id": "81110", "key": "TIMOB-5427", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-10-04T15:34:41.000+0000", "created": "2011-10-04T13:38:57.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "13062", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "80798", "key": "TIMOB-5401", "fields": { "summary": "Control of Event Propagation", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:40.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": "Currently the JS preventDefault method is not supported, and we recommend using a view under a view, and set touchEnabled to false on the top view, and deal with the click on the underlying elements.\r\n\r\nfor instance, a click event listener on an alert dialog cant do this:\r\n\r\n{code}\r\nif (ev.index == 1) { // clicked \"learn more\"\r\n Ti.Platform.openURL('http://www.xyz.com');\r\n ev.preventDefault(); //this should prevent the dialog from closing\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "allow preventDefault method to work on native UI elements", "creator": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "167959", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "That is a DOM method and not a JS method. An eventing system has to be designed in for Titanium.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-04T15:34:41.000+0000", "updated": "2011-10-04T15:34:41.000+0000" }, { "id": "168139", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not only that, but even the duplicate is an invalid request. The events are asynchronous--that is, by the time the JS has run, the native code handling it has already happened.\r\n\r\nNot only that, events are often are asynchronous for the native app portion. For example, on an alert, iOS only tells us that a button was pressed after it's already dismissed the alert. Note http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIAlertViewDelegate_Protocol/UIAlertViewDelegate/UIAlertViewDelegate.html \"The receiver is automatically dismissed after this method is invoked.\"", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-06T11:20:22.000+0000", "updated": "2011-10-06T11:20:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }