[
https://issues.apache.org/jira/browse/FLEX-34657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Velevitch updated FLEX-34657:
-----------------------------------
Attachment: Main.mxml
This example shows the issue. Select each item order from 1 to 6, the text area
shows what happens as you select another item.
> SelectedIndices order is messed up
> ----------------------------------
>
> Key: FLEX-34657
> URL: https://issues.apache.org/jira/browse/FLEX-34657
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: List
> Affects Versions: Apache Flex 4.13.0
> Reporter: Chris Velevitch
> Assignee: Erik de Bruin
> Attachments: Main.mxml
>
>
> The order of the existing selected indices is reversed each time a item is
> selected or deselected.
> In spark.components.list.as, the function calculateSelectedIndices at line
> 1646, the loop is using splice to rebuild the selected indices. This is
> reversing the order of the previously selected indices before adding the new
> item. The loop should be using push to preserve the original order.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)