Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Next
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Create an Accordion with two AccordionContents.
2. Add a change handler to the Accordion.
3. Click on the first, already opened, AccordionHeader.
Test Case:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import spark.events.IndexChangeEvent;
protected function accordion_changeHandler(event:IndexChangeEvent):void
{ trace("change"); } ]]
>
</fx:Script>
<s:Accordion id="accordion" change="accordion_changeHandler(event)">
<s:AccordionContent label="Tab 1" selectedWidth="200" selectedHeight="200">
<s:CheckBox/>
</s:AccordionContent>
<s:AccordionContent label="Tab 2" >
<s:CheckBox/>
</s:AccordionContent>
</s:Accordion>
</s:WindowedApplication>
Actual Results:
Accordion will dispatch a change event even though the selection did not change.
Expected Results:
Accordion should not dispatch a change event if you do not change the selection.
Workaround (if any):
None identified right now.