{ "id": "123052", "key": "TIMOB-15851", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-12-02T19:23:18.000+0000", "created": "2013-11-29T10:44:23.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "dev-invalidate", "qe-3.2.0", "qe-closed-3.3.0" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-17T09:39:26.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": "Alert event does not get fired when in html with a click event attached in webView. Once webView eventlistener is commented out the click event in html gets fired.\n\nSteps:\n1. Use below code and run the app (Actual: Click event with \"123456\" message does not get fired.)\n2. Comment eventlistener below html code containing alert and observe \"123456\" alert appears\n\nExpected: Click event in html must also work fine along with other alerts.\n\n{code}\nvar _window = Titanium.UI.createWindow();\n_window.backgroundColor = 'yellow';\n\n\t_window.addEventListener('click', function(e) {\n\t\talert('Window clicked');\n\t});\n\tvar webView = Titanium.UI.createWebView({\n\t\ttop : 30\n\t});\n\tvar html = '' + '' + '
' + '
' + '
' + '
' + '
' + '
' + 'Click me!' + '' + '';\n\twebView.html = html;\n//Comment below event listener to get alert(123456)\nwebView.addEventListener('click', function(e) {\n\talert('WebView Clicked');\n\t});\n\t_window.add(webView);\n_window.open();\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Click event in html does not get fired when click event in webView is attached", "creator": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "OSX: 10.8.5\r\nXcode: 5.0\r\nAppcelerator Studio:3.2.0.201311272052\r\nSDK:3.2.0.v20131127194046\r\nalloy: 1.3.0-beta\r\nacs: 1.0.9\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-beta\r\ntitanium-code-processor: 1.1.0-beta\r\nDevice: iPod touch2 (iOS7.0.4)\r\n ", "comment": { "comments": [ { "id": "281948", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is not a bug. This is the expected behavior and is documented in our docs. http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.WebView - read iOS Platform Implementation Notes. \n\n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-02T19:23:03.000+0000", "updated": "2013-12-02T19:23:03.000+0000" }, { "id": "314622", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Closing as its expected behavior.\r\n", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-07-17T09:39:13.000+0000", "updated": "2014-07-17T09:39:13.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }