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

Multiple TabBar buttons can get selected when changing states

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Spark: TabBar
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile and run:

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx">

      <s:states>
      <s:State name="state1"/>
      <s:State name="state2"/>
      <s:State name="state3"/>
      </s:states>

      <s:controlBarContent>
      <s:Button label="1. go to state2" click="currentState='state2'" />
      <s:Button label="2. go to state3" click="currentState='state3'" />
      </s:controlBarContent>

      <s:TabBar dataProvider="

      {vs}

      " />

      <mx:ViewStack id="vs" y="25">

      <s:NavigatorContent label="Tab1" includeIn="state3">
      <s:Label text="Tab1" />
      </s:NavigatorContent>

      <s:NavigatorContent label="Tab2" includeIn="state2,state3">
      <s:Label text="Tab2" />
      </s:NavigatorContent>

      <s:NavigatorContent label="Tab3">
      <s:Label text="Tab3" />
      </s:NavigatorContent>

      </mx:ViewStack>

      </s:Application>

      2. Click "1. go to state2"
      3. Click "2. go to state3"

      Actual Results:

      Two tabs show as selected

      Expected Results:

      Only one tab should be selected

      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: