Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23239] Windows: list items not receiving click events

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2016-04-20T01:45:56.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sRelease 5.4.0
ComponentsWindows
Labelslumia, qe-5.4.0, windows
Reporter Ricardo Ramirez
AssigneeKota Iguchi
Created2016-04-19T20:50:07.000+0000
Updated2016-06-27T19:06:42.000+0000

Description

Issue description

In a ListView with multiple sections the first items of sections after the first section do not receive click events. For example (as in the test case and video attached) if there are three list sections, item 0 of section 0 will receive a click event, but item 0 of section 1 and item 0 of section 2 will not.

Steps to replicate

Create a new Titanium Alloy Simple project with the latest 5.4.X SDK

Replace the Index.js , Index.tss and Index.xml with the files attached

Run on a Lumia 1520 device

Expected behavior

All clicks responding

Attachments

FileDateSize
listclicks.avi2016-04-19T20:47:10.000+0000716800

Comments

  1. Kota Iguchi 2016-04-20

    Yes, this doesn't happen on the latest build.
       var win = Ti.UI.createWindow();
       var listView = Ti.UI.createListView();
       var sections = [];
       
       var fruitSection = Ti.UI.createListSection({ backgroundColor: 'green' });
       var fruitDataSet = [
           { properties: { title: 'Apple' } },
           { properties: { title: 'Banana 1' } },
           { properties: { title: 'Banana 2' } },
       ];
       fruitSection.setItems(fruitDataSet);
       sections.push(fruitSection);
       
       var vegSection = Ti.UI.createListSection({backgroundColor:'blue'});
       var vegDataSet = [
           { properties: { title: 'Carrots' } },
           { properties: { title: 'Potatoes 1' } },
           { properties: { title: 'Potatoes 2' } },
       ];
       vegSection.setItems(vegDataSet);
       sections.push(vegSection);
       
       var fishSection = Ti.UI.createListSection({ backgroundColor: 'red' });
       var fishDataSet = [
           { properties: { title: 'Cod' } },
           { properties: { title: 'Haddock 1' } },
           { properties: { title: 'Haddock 2' } },
       ];
       fishSection.setItems(fishDataSet);
       sections.push(fishSection);
       
       listView.addEventListener('itemclick', function (e) {
           alert(e.sectionIndex + ':' + e.itemIndex);
       });
       
       listView.sections = sections;
       win.add(listView);
       win.open();
       
  2. Harry Bryant 2016-06-27

    Verified as fixed, refer to TIMOB-20575 for additional information. *Closing Ticket.*

JSON Source