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

DropDownList selectedItem is ignored if dataprovider changes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: Adobe Flex SDK 4.5 (Release)
    • Fix Version/s: None
    • Component/s: Spark: DropDownList
    • Labels:
      None
    • Environment:
      Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

      Description

      Steps to reproduce:
      1. Create a DrownDownList, binding a selectedItem and an arrayCollection to the dataprovider
      2. Change the selectedItem (it is not in the dataprovider at this point)
      3. Change the dataprovider, selectedItem is now in the dataprovider, but selected index is now -1

      Actual Results:
      Nothing is selected

      Expected Results:
      SelectedItem is in DataProvider, it should be selected.

      Workaround (if any):
      Instead of binding against selectedItem, can bind selectedIndex with selectedIndex="

      {dataProvider.indexOf(selectedItem)}

      "

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adobejira Adobe JIRA
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: