Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-34657

SelectedIndices order is messed up

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Apache Flex 4.13.0
    • Fix Version/s: Apache Flex 4.14.0
    • Component/s: Spark: List
    • Labels:
      None

      Description

      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.

        Attachments

        1. Main.mxml
          1 kB
          Chris Velevitch

          Activity

            People

            • Assignee:
              erik@ixsoftware.nl Erik de Bruin
              Reporter:
              kit105 Chris Velevitch
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: