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

Spark Accordion selectedIndex throws RTE when set to out of range value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK Next
    • None
    • Spark: Accordion
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Execute below code and click on "Set selectedIndex to outOfRange"

      <?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/mx" minWidth="955" minHeight="600">

      <s:layout>
      <s:VerticalLayout/>
      </s:layout>

      <fx:Script>
      <![CDATA[
      import mx.events.FlexEvent;
      protected function button1_clickHandler(event:MouseEvent):void

      { vAccordion.selectedIndex = 10; }

      ]]
      >
      </fx:Script>
      <s:Button label="Set selectedIndex to outOfRange" click="button1_clickHandler(event)" />

      <s:Accordion id="vAccordion" >
      <s:AccordionContent id="ac1" label="Accordion Content 1">
      <s:Button label="Test Button"/>
      </s:AccordionContent>
      <s:AccordionContent id="ac2" label="Accordion Content 2">
      <s:TextInput text="TextInput" width="60" />
      </s:AccordionContent>
      </s:Accordion>
      </s:Application>

      2.
      3.

      Actual Results:
      RTE

      Expected Results:
      Accordion should ignore invalid\outOfRange values and not RTE.

      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: