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

DropDownList selectedItem is ignored if dataprovider changes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK 4.5 (Release)
    • None
    • Spark: DropDownList
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: