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

selecting tabbar twices causes the selection on the tabBarButton goes away

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. compile and run test
      <?xml version="1.0" encoding="utf-8"?>
      <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/halo"
      minWidth="1024" minHeight="768" >
      <fx:Script>
      <![CDATA[
      public function itemSelected1():void

      { info.text="selected="+tb2.selectedIndex; }

      ]]
      >
      </fx:Script>
      <s:layout><s:VerticalLayout/></s:layout>
      <mx:VBox paddingLeft="40">
      <s:Label id="info" text="add"/>
      <s:TabBar id="tb2" arrowKeysWrapFocus="true" click="itemSelected1()">
      <s:dataProvider>
      <s:ArrayCollection id="ac11" source="['one','two','three']" />
      </s:dataProvider>
      </s:TabBar>
      </mx:VBox>

      </s:Application>

      2. click the first tabbar button(by default, the first one is selected)
      3.

      Actual Results:
      after click the selected tabbarButton, the selection is gone,
      tb2.selectedIndex=0, it is conflicted as the selection is gone

      Expected Results:

      selection should still be on the button.

      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: