Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Run the following 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[
protected function button1_clickHandler(event:MouseEvent):void
]]
>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:layout>
<s:VerticalLayout />
</s:layout>
<s:List id="list" width="100%" requireSelection="true">
<s:dataProvider>
<s:ArrayList id="listData">
<fx:String>Item 1</fx:String>
<fx:String>Item 1</fx:String>
<fx:String>Item 1</fx:String>
<fx:String>Item 1</fx:String>
</s:ArrayList>
</s:dataProvider>
</s:List>
<s:Button label="Delete Selected Item" click="button1_clickHandler(event)"/>
</s:Application>
2. Select the last item in the list
3. Press the delete button
4. Click on the first item in the list
Actual Results:
The first item briefly highlights and then deselects
Expected Results:
There seems to be two bugs here. I would expect the following:
1) After deleting the item, another item should be selected since requireSelection is true
2) After deleting the item, i should be able to click on all the other renderers
Workaround (if any):