{ "id": "93178", "key": "TIMOB-9525", "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": "2017-01-29T22:30:49.000+0000", "created": "2012-06-13T16:15:39.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "supportTeam" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-30T20:43:06.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": "h2. Problem description\r\nTi.UI.iOS.TabbedBar does not fire a click event if the user taps on a button that's already selected.\r\n\r\nh2. Steps to reproduce and sample code\r\n1. Run sample code and click on a tabbedBar button\r\nResult: 'click' eventListener it's correctly triggered. Button it's now selected.\r\n2. Click again on the same button\r\nResult: no 'click' event it's triggered\r\n\r\n{code}\r\n\r\nvar win = Titanium.UI.createWindow({\r\n\ttitle:'test',\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar tb1 = Titanium.UI.iOS.createTabbedBar({\r\n\tlabels:['One', 'Two', 'Three'],\r\n\tbackgroundColor:'#336699',\r\n\ttop:50,\r\n\tstyle:Titanium.UI.iPhone.SystemButtonStyle.BAR,\r\n\theight:25,\r\n\twidth:200,\r\n\tindex:2\r\n});\r\nwin.add(tb1);\r\n\r\nvar odd=true;\r\ntb1.addEventListener('click', function(e){ \r\n\talert('clicked!');\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: Ti.UI.iOS.TabbedBar - no 'click' events get triggered on already selected button", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK all versions\r\niOS 5.1", "comment": { "comments": [ { "id": "198543", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "If you want to register every click use the buttonBar. The tabbedBar only fires the click event when the selected index changes.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T13:48:06.000+0000", "updated": "2012-06-14T13:48:06.000+0000" }, { "id": "244453", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-28T08:50:13.000+0000", "updated": "2013-03-28T08:50:13.000+0000" }, { "id": "405591", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is the intended native iOS behavior. If this behavior is required anyway, a custom UI element should be used to achieve that.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-29T22:30:49.000+0000", "updated": "2017-01-29T22:30:49.000+0000" }, { "id": "416371", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\". There has been no update for a number of years. If there is any problem, please open a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-30T20:43:06.000+0000", "updated": "2017-03-30T20:43:06.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }