Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14887] iOS: TableViewRow hasCheck, hasChild and hasDetail properties prevent selection fading

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2014-09-19T06:28:33.000+0000
Affected Version/sRelease 3.1.1, Release 3.2.0
Fix Version/sRelease 3.4.0
ComponentsiOS
LabelsbackgroundColor, hasCheck, hasChild, hasDetail, qe-automatedtest, tableviewrow
ReporterMatej
AssigneeIngo Muschenetz
Created2013-08-10T09:18:35.000+0000
Updated2015-01-09T17:21:13.000+0000

Description

*Problem* When the hasCheck, hasChild or hasDetail properties are set to true on a TableViewRow, the selection fade effect no longer occurs. *Steps to reproduce* 1. Run the test case on the iOS simulator 2. Select the rows and see that the select color suddenly appears with no fade effect 3. Comment out the click event listener 4. Run again, select the rows, and see that there is a fade effect *Test case*
 
var win = Titanium.UI.createWindow();

var data = [{
	title : 'Adrian'
}, {
	title : 'Andrew'
}, {
	title : 'Barry'
}, {
	title : 'Betty'
}];

var tableView = Ti.UI.createTableView({
	width : Ti.UI.FILL,
	height : Ti.UI.FILL,
	style : Ti.UI.iPhone.TableViewStyle.GROUPED,
	data : data
});

win.add(tableView);
win.open();

tableView.addEventListener("click", function(e) {
	for (var i = 0; i < tableView.data[0].rowCount; i++)
		tableView.data[0].rows[i].hasCheck = false;

	e.rowData.hasCheck = true;
	//hasDetail, hasChild...
});

// And try to click on some row without tableView click listener...

Comments

  1. Daniel Sefton 2013-08-15

    Tested and confirmed on iOS 6 simulator with Ti SDK 3.1.1 GA and 3.2 CI.
  2. Shameer Jan 2014-09-19

    Issue exist with 3.1.1 but can't reproduce on 3.4.0 Appcelerator Studio, build: 3.3.0.201407111535 TiSDK 3.4.0 iOS : 6.0 Titanium Command-Line Interface, CLI version 3.3.0
  3. Olga Romero 2014-09-19

    Tested the fix using the following environment Mac osx 10.9.5 Mavericks Appcelerator Studio, build: 3.4.0.201409161950 Titanium SDK, build: 3.4.0.v20140918202513 acs@1.0.16 alloy 1.5.0-rc2 install@0.1.7 npm@1.4.23 sudo@1.0.3 titanium 3.4.0-rc4 titanium-code-processor@1.1.1 Xcode6.0.1 (6A317)

JSON Source