Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24328] UniversalWindowsApp: touchEnabled: false does not disable button

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-01-23T01:09:09.000+0000
Affected Version/sRelease 6.0.1
Fix Version/sRelease 6.1.0
ComponentsWindows, Windows phone
Labelseng-priority
ReporterNeeraj Mishra
AssigneeGary Mathews
Created2017-01-18T22:50:08.000+0000
Updated2017-05-16T18:09:33.000+0000

Description

Problem Description:

Setting touchEnabled with value false in a Ti.UI.Button doesn't disable the component in a universal windows app (Windows 10). This works as expected in Android and iOS

Steps to Replicate:

1) Launch the app (https://propelics.box.com/s/tquvgq5ejldjslsb61rpzncgtdxjxia2) 2) Two buttons will show up. 3) Click on the touchEnabled true one (the one on the top). An alert will show up. 4) Click on the touchEnabled false one (the one on the bottom). Same alert will show up.

Expected Result:

Click event shouldn't trigger in the button in the bottom, as it has its touchEnabled property set to false.

Attachments

FileDateSize
Description_test_case_before.PNG2017-02-14T22:09:41.000+00009849
Description_test_case.PNG2017-02-14T22:09:41.000+00005713

Comments

  1. Gary Mathews 2017-01-19

    master: https://github.com/appcelerator/titanium_mobile_windows/pull/928
  2. Samir Mohammed 2017-02-14

    I am able to verify with the test case provided in https://github.com/appcelerator/titanium_mobile_windows/pull/928. But with the test case provided in the description the second button is no longer visible. Any idea why [~gmathews] ? 6.0.1.GA !Description_test_case_before.PNG|thumbnail! 6.1.0.v20170213134957 !Description_test_case.PNG|thumbnail! *Environment*
       Windows Emulator: 10.0.14393
       Operating System:
       Name                        = Microsoft Windows 10 Pro
       Version                     = 10.0.14393
       Architecture                = 32bit
       

    CPUs = 4

    Memory = 17034395648 Node.js: Node.js Version = 4.6.0 npm Version = 2.15.9 Titanium SDK: SDK Version = 6.1.0.v20170213134957
  3. Samir Mohammed 2017-05-16

    Verified with the following test case:
       var win = Ti.UI.createWindow({ backgroundColor: 'green' }),
           btn = Ti.UI.createButton({ title: 'BUTTON', backgroundColor: '#FF0000',  touchEnabled: false,  });
       
       btn.addEventListener('click', function () {
           alert('CLICK');
       });
       
       win.add(btn);
       win.open();
       
    Was unable to verify with test case in description as link is no longer available. *Environment*
       Windows Emulator: 10.0.14393
       Operating System:
       Name                        = Microsoft Windows 10 Pro
       Version                     = 10.0.14393
       Architecture                = 32bit
       

    CPUs = 4

    Memory = 17034395648 Node.js: Node.js Version = 6.10.1 Titanium SDK: SDK Version = 6.1.0.v20170514022959

JSON Source