Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Next
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Run below application or the attached swf file.
2. Click on "selectedIndex and remove without wait"
Application file:
<?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">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import spark.layouts.supportClasses.LayoutBase;
public function removeAccordionContentAtEnd():void
{ vAccordion.removeElementAt(3); }public function check():void
{ vAccordion.selectedIndex=1; }protected function vAccordion_changeEndHandler(event:FlexEvent):void
{ removeAccordionContentAtEnd(); }public function check1():void
{ vAccordion.selectedIndex=1; removeAccordionContentAtEnd(); } ]]
>
</fx:Script>
<!-- RTE when "selectedIndex and remove without wait" is clicked -->
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:Button label="selectedIndex and remove with wait" click="check()" />
<s:Button label="selectedIndex and remove without wait" click="check1()" />
<s:Accordion id="vAccordion" resizeToContent="true" allowMultipleSelection="true" changeEnd="vAccordion_changeEndHandler(event)">
<s:AccordionContent id="ac1" label="Tab 1">
<s:CheckBox label="Checkbox" />
</s:AccordionContent>
<s:AccordionContent id="ac2" label="Tab 2">
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:CheckBox label="test 2" />
<s:Button label="Button 2" />
</s:AccordionContent>
<s:AccordionContent id="ac3" label="Tab 3">
<s:Button label="Button 3" />
</s:AccordionContent>
<s:AccordionContent id="ac4" label="Tab 4">
<s:RadioButton label="Radio Button 4" />
</s:AccordionContent>
</s:Accordion>
</s:Application>
Actual Results:
RTE, when "selectedIndex and remove without wait" is clicked.
When "selectedIndex and remove with wait" is clicked it does the expected i.e. Changes the selection to index 1 and removes the last element.
Expected Results:
Behavior on click of "selectedIndex and remove without wait" and "selectedIndex and remove with wait" should be identical.
In both cases, it should change the selection to index 1 and remove the last element.
Workaround (if any):