GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-06-20T23:29:06.000+0000 |
Affected Version/s | Release 1.7.2, Release 2.0.1, Release 3.1.0 |
Fix Version/s | 2013 Sprint 13 API, 2013 Sprint 13, Release 3.2.0 |
Components | Android |
Labels | api, module_tableview, qe-testadded |
Reporter | Karol Pomaski |
Assignee | Biju pm |
Created | 2011-09-01T08:01:45.000+0000 |
Updated | 2014-02-12T09:38:54.000+0000 |
Problem
TouchEnabled property does not work on TableView. We are not able to block the rows from firing the "click" event.
Reproducible Steps
1. Execute attached code
2. Click on any row
3. The "click" event was executed however tableView has set a "touchEnabled: false" property
Sample Code
var win = Ti.UI.createWindow({
title: 'Table' ,
navBarHidden: true
});
var tableData = [{title: 'one'}, {title: 'two'}, {title: 'three'}];
var tableView = Ti.UI.createTableView({
data: tableData,
touchEnabled: false
});
tableView.addEventListener('click', function(e){
alert("Event fired");
});
win.add(tableView);
win.open();
Associated HelpDesk ticket
http://appc.me/a/APP-787515
Try using the new form with row proxies and disabling touch on those controls as a workaround.
I already tried Titanium.UI.createTableViewRow but touchEnabled property does not work neither there. My workaround was to open a new transparent view (that cover the screen) when the "click" event is fired so next events won't come to the tableview.
Still bug - tested on Ti SDK 2.0.1 GA2, still an issue.
I tested this in Mobile SDK 2.1.1 on Galaxy S2 4.0.3 but the issue is still present. The touchEnabled property is having no effect.
Same issue here ! Nothing new since 1 year on this
issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 Android Emulator: Android SDK version: 2.2
added touchEnabled property check and manage the touch events https://github.com/appcelerator/titanium_mobile/pull/4360
Verified the fix with: Appc-Studio: 3.2.0.201310181700 Sdk:3.2.0.v20131018154951 alloy:1.2.2 npm:1.3.2 titanium:3.2.0 titanium-code-processor:1.0.3 Device:Google Nexus 7(v4.3),iphone5(v7) Xcode: 5 Closing since TouchEnabled property working fine on tableView for both the platforms.