[
https://issues.apache.org/jira/browse/FLEX-25454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Kessler resolved FLEX-25454.
---------------------------------
Resolution: Not A Problem
Tested with the below code. Problem no longer exists as of the current
Flex-SDK.
<?xml version="1.0" encoding="utf-8"?>
<!---
Test application
-->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" >
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var someData:ArrayCollection = new
ArrayCollection([
{label:'Dan'},
{label:'Debra'},
{label:'Mike'},
{label:'Steve'}
]);
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout horizontalAlign="center" verticalAlign="middle"
gap="0" />
</s:layout>
<s:ComboBox id="cb" dataProvider="{someData}" />
<s:TextInput text="{String(cb.selectedIndex)}" />
<s:TextInput text="{String(cb.selectedItem)}" />
</s:Application>
> CTRL-clicking/de-selecting a selected item to remove selection from ComboBox
> is incorrectly functioning
> -------------------------------------------------------------------------------------------------------
>
> Key: FLEX-25454
> URL: https://issues.apache.org/jira/browse/FLEX-25454
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: ComboBox
> Affects Versions: Adobe Flex SDK 4.1 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
> Reporter: Adobe JIRA
> Attachments: SparkComboBoxTest.fxp
>
>
> Steps to reproduce:
> Using the attached Flex project.
> 1.Select a item from the ComboBox.
> 2.Remove the previous selected item by CTRL-clicking it.
> 3.Click either of the two buttons to view selectedItem or selectedIndex
> property of the ComboBox.
>
> Actual Results:
> The item appears to be not selected, but the selectedIndex and selectedItem
> still reference the selected item. When clicking either button, the ComboBox
> will jump back to the selectedItem, even though we de-selected it. If you
> open the ComboBox first without clicking either button, the ComboBox
> correctly displays no selected items.
>
> Expected Results:
> The ComboBox selectedItem and selectedIndex should be null and -1 after
> de-selecting the item.
>
> Workaround (if any):
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira