{ "id": "169238", "key": "TIMOB-25055", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-11T05:56:38.000+0000", "created": "2017-08-02T07:12:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" } ], "issuelinks": [], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-15T17:58:08.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5. Problem Description:\r\n\r\nNOT to confound with what was reported on TIMOB-24328 , where the test case was much simpler (the whole test case UI was all in index.xml).\r\n\r\nThere seems to be an issue when placing a Ti.UI.Button with touchEnabled = false in a separated controller, and instantiating that controller in another whole different one. When doing this, for some reason, the touchEnabled = false property loses its effect.\r\n\r\nh5. Steps to Reproduce:\r\n1) Go to Sample project 2's source code and open index.xml - observe how there's only a Window there (mainContainer)\r\n2) In the same project, go to index.js - observe how there's an instance of testController being added to mainContainer\r\n3) In the same project, go to testController.xml - observe its UI structure: only a View (modal) and a Button (touchEnabledFalseButton) within it.\r\n4) In the same project, go to testController.tss - observe touchEnabledFalseButton's style: touchEnabled property is set to false\r\n5) In the same project, go to testController.js - observe the event listener added to touchEnabledFalseButton, which prints the event object in the console.\r\n6) Run this sample project (can be done in a -T ws-local app)\r\n7) A window with a red button on it will be shown\r\n8) Click the red button\r\n9) Observe how the event object gets printed on every click, despite the fact the button has touchEnabled = false on testController.tss\r\n10) ALSO observe how \"Ti.UI.View.enabled property is deprecated. Please use touchEnabled.\" gets printed. - Why would this be printed? The project is NOT using the \"enabled\" property ...\r\n\r\nh5. Note:\r\nAgain, this is a very specific scenario, since in it's been demonstrated the most simple possible scenario (Sample project 1) works fine.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Windows: touchEnabled false not working when in controller", "creator": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "subtasks": [], "reporter": { "name": "nmishra", "key": "nmishra", "displayName": "Neeraj Mishra", "active": true, "timeZone": "America/Phoenix" }, "environment": "Environment details:\r\n\r\nOperating System\r\n Name = Microsoft Windows 10 Enterprise 2015 LTSB\r\n Version = 10.0.10240\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 15.9GB\r\n\r\nNode.js\r\n Node.js Version = 4.6.2\r\n npm Version = 2.15.11\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\n node-appc Version = 0.2.41\r\n\r\nTitanium SDKs\r\n 6.1.1.GA\r\n Version = 6.1.1\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\6.1.1.GA\r\n Platforms = android, mobileweb, windows\r\n git Hash = c28220a\r\n git Timestamp = 6/26/2017 23:12\r\n node-appc Version = 0.2.43\r\n\r\nMicrosoft (R) Visual Studio\r\n 14.0 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\\r\n CLR Version = v4.0.30319\r\n MSBuild Version = v14.0.25420.1\r\n Windows Phone SDKs = not installed\r\n\r\nMicrosoft (R) Windows Phone SDK\r\n 10.0\r\n Path = C:\\Program Files (x86)\\Windows Kits\\10\\\r\n 8.1 (selected)\r\n Path = C:\\Program Files (x86)\\Microsoft SDKs\\Windows Phone\\v8.1\\\r\n\r\nWindows PowerShell\r\n Enabled = yes\r\n\r\n", "closedSprints": [ { "id": 933, "state": "closed", "name": "2017 Sprint 16 SDK", "startDate": "2017-07-30T16:17:10.306Z", "endDate": "2017-08-13T16:17:00.000Z", "completeDate": "2017-08-13T23:06:34.398Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "425390", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce this.\r\n\r\nJust a side note and following up just in case: The message {{Ti.UI.View.enabled property is deprecated. Please use touchEnabled.}} is not a bug. It is displayed because of the line {{JSON.stringify(_evt)}}.\r\n\r\n# {{JSON.stringify}} enumerates all properties in {{_evt}}\r\n# {{_evt}} has {{source}} property, which points to the button\r\n# Thus, {{JSON.stringify}} enumerates all properties in the button including {{enabled}} property\r\n# {{JSON.stringify}} access {{enabled}} property and Titanium prints out the warning\r\n\r\n", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-03T01:27:39.000+0000", "updated": "2017-08-03T01:27:39.000+0000" }, { "id": "425396", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1059", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-03T04:41:34.000+0000", "updated": "2017-08-03T04:41:34.000+0000" }, { "id": "426513", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~kiguchi] Master is merged. Waiting for 6_2_X.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-10T23:47:51.000+0000", "updated": "2017-08-10T23:47:51.000+0000" }, { "id": "426522", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Merged to 6_2_X.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-08-11T05:56:38.000+0000", "updated": "2017-08-11T05:56:38.000+0000" }, { "id": "426682", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix in SDK Version 7.0.0.v20170815065413 and SDK Version: 6.2.0.v20170811022027\r\n\r\nTest and other information can be found at:\r\nMaster: https://github.com/appcelerator/titanium_mobile_windows/pull/1059\r\n6_2_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1072\r\n https://github.com/appcelerator/titanium_mobile_windows/pull/1074", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-15T17:57:56.000+0000", "updated": "2017-08-15T17:57:56.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }