{ "id": "61694", "key": "TIMOB-1062", "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": [ { "id": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:42:58.000+0000", "created": "2011-04-15T02:42:56.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "button", "defect", "enabled", "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-02T19:21:38.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

A button that has enabled set to false still fires events.

\n

var test_btn = Ti.UI.createButton({

\n
\ntitle:'test',\nwidth:100,\nheight:35,\ntop:0,\nleft:0,\nenabled:false\n
\n

});

\n

test_btn.addEventListener('click',function(e){

\n
\nTi.API.log('am I firing?');\n
\n

});

\n

win.add(test_btn);

{html}", "attachment": [], "flagged": false, "summary": "Button still sending events while disabled", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124730", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Disabling buttons works correctly, but Blain says there may be\ntoolbar strangeness. Investigating.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:57.000+0000", "updated": "2011-04-15T02:42:57.000+0000" }, { "id": "124731", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Is this working correctly in the version in HEAD? Because I can\nrecreate this bug in 1.2 & 1.3

{html}", "updateAuthor": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:57.000+0000", "updated": "2011-04-15T02:42:57.000+0000" }, { "id": "124732", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

It works for me off master/HEAD, yes.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:58.000+0000", "updated": "2011-04-15T02:42:58.000+0000" }, { "id": "124733", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [24118fb786421474ee3d0a518ef033dea44f527a])\n[#1062 state:invalid] Test for disabled button in\ntoolbar. Works as expected. \nhttp://github.com/appcelerator/titanium_mobile/commit/24118fb786421...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:58.000+0000", "updated": "2011-04-15T02:42:58.000+0000" }, { "id": "124734", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Re-open if you can duplicate under master/HEAD, and I've somehow\nmissed something.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:58.000+0000", "updated": "2011-04-15T02:42:58.000+0000" }, { "id": "124735", "author": { "name": "ryanasleson", "key": "ryanasleson", "displayName": "Ryan Asleson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Disabling a button works on iPhone but is definitely broken on\nAndroid. In the latest KitchenSink, go to\n/Resources/examples/button.js. Comment out lines 55-59, the\nsetTimeout function. On iPhone you can click the button once to\ndisable it, and once disabled, it no longer responds to events. On\nAndroid, click it once to \"disable\" it, but you can continue to\nclick it and it will respond to the click events.

\n

Can this bug be reopened or should a new one be filed?

{html}", "updateAuthor": { "name": "ryanasleson", "key": "ryanasleson", "displayName": "Ryan Asleson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:42:58.000+0000", "updated": "2011-04-15T02:42:58.000+0000" }, { "id": "408436", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closed as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-02T19:21:38.000+0000", "updated": "2017-03-02T19:21:38.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }