Issue Description
When clicking on a listitem in a listview the listitemclick event is fired and received, but the bindId property for the element clicked is undefined.
Steps to Replicate
Create a new appcelerator alloy project
Open index.xml and replace the code with the next:
<Alloy>
<Window class="container">
<View>
<ListView id='list' top='0' onItemclick='itemClick'>
<Templates>
<ItemTemplate name='foo'>
<View bindId='fooView' left='8' right='8' top='8' bottom='8' backgroundColor='red'/>
</ItemTemplate>
</Templates>
</ListView>
</View>
</Window>
</Alloy>
Open index.tss and replace the code with the next:
".container": {
backgroundColor:"white"
}
"Label": {
color: "#000"
}
"#label": {
font: {
fontSize: 12
}
}
Index.js
var currentClickedIndex = -1;
function itemClick(evt){
alert(evt.bindId);
}
var listItems = [];
for(var ii = 0; ii < 20; ii++){
listItems.push({
template : 'foo',
properties : {
height : 80
}
});
}
$.list.sections = [Ti.UI.createListSection({
items : listItems
})];
$.index.open();
Run for windows device or simulator
click on any list item
The BindId is undefined
** This is working on Android.
I believe this is a duplicate of TIMOB-20601
yes, it looks like the same issue
duplicate of TIMOB-20601
Closing ticket as duplicate with reference to the linked issues.