Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Compile and run this application:
<?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">
<fx:Script>
<![CDATA[
import spark.events.IndexChangeEvent;
protected function changeItemSelection(event:IndexChangeEvent):void
{ trace('selectedIndices:', myList.selectedIndices); trace(event.type, event.oldIndex, event.newIndex); } ]]
>
</fx:Script>
<s:List id="myList" width="100%" height="100%" allowMultipleSelection="true" changing="changeItemSelection(event)" change="changeItemSelection(event)">
<s:dataProvider>
<s:ArrayList>
<fx:Object label="0" />
<fx:Object label="1" />
<fx:Object label="2" />
<fx:Object label="3" />
<fx:Object label="4" />
<fx:Object label="5" />
<fx:Object label="6" />
</s:ArrayList>
</s:dataProvider>
</s:List>
</s:Application>
2. Control click on item 1
3. Control click on item 2
4. Control click on item 3
5. Control click on item 4
6. Control click on item 5
7. Control click on item 6
8. Control click on item 1
Actual Results:
The last four trace statements show:
selectedIndices: 6,4,2,0,1,3,5
changing 6 5
selectedIndices: 5,3,1,2,4,6
change 6 5
Expected Results:
Since I'm deselecting item 1 I wouldn't expect any change/changing event from item 5 (since it didn't change).
I would expect a change event from item 1 (since it did change).
Workaround (if any):