Comment 4 for bug 1344883

Revision history for this message
Sam Bull (dreamsorcerer) wrote : Re: PageHeadSections/Picker: selectedIndex changes incorrectly when inserting/removing model entries

OK, the section headers are not the same issue as the picker component. I've attached a new example showing both.

With both components set to index 12:
  After removing item 8, the section header moves to item 13, but the picker jumps to item 7.
  After removing item 3, the section header moves to item 13, whereas the picker remains on item 12.

I can't test this with a ListView directly, as it does not have a selectedIndex.
So, the picker jumps down to the deleted item on some indices and remains pointing at the correct item on others.
I've registered a separate bug for the off by one behaviour of the section header (bug #1493040).