Description
When tapping a tableviewrow and the tableView has touchEnabled set to false then a click event will still be fired
var _window = Ti.UI.createWindow();
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");
});
_window.add(tableView);
_windows.open();
Steps to reproduce
Add the above code to an existing app.js and build for Windows Platform
Tap a row
Actual result
Click event fired
Expected result
Click event should not be fired
I don't think that this is happening only on TableView's, I've created an test app with only a Label inside the Window, after the label click event, it set the 'touchEnabled' property to false for both label and window, but if I click anywhere it still runs the click event.
Let me close this, we move this ticket to more general one because this happens on other components too: TIMOB-24252