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

SpinnerList with first item disabled doesn't return the correct selectedIndex/selectedItem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • Adobe Flex SDK Previous
    • Mobile: SpinnerList
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a new Flex mobile project with this view:
      <?xml version="1.0" encoding="utf-8"?>
      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      title="NewView">

      <s:SpinnerList id="target" labelField="label" change="trace('change', event.oldIndex, event.newIndex)" valueCommit="trace('valueCommit')">
      <s:dataProvider>
      <s:ArrayList>
      <fx:Object label="0" enabled="false" />
      <fx:Object label="1" enabled="true" />
      <fx:Object label="2" enabled="false" />
      <fx:Object label="3" enabled="false" />
      <fx:Object label="4" enabled="false" />
      <fx:Object label="5" enabled="false" />
      <fx:Object label="6" enabled="false" />
      <fx:Object label="7" enabled="true" />
      <fx:Object label="8" enabled="false" />
      </s:ArrayList>
      </s:dataProvider>
      </s:SpinnerList>

      <s:VGroup x="200">
      <s:Button label="get selection" click="trace(target.selectedIndex, target.selectedItem.label)" />
      </s:VGroup>

      </s:View>

      2. Click get selection
      3.

      Actual Results:

      Trace output: 0 0

      Expected Results:

      Trace output: 1 1

      Workaround (if any):

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: