flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Fel (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-33935) DropDownList doesn't handle selection properly if it is disabled immediately
Date Tue, 26 Nov 2013 12:17:35 GMT
Andrey Fel created FLEX-33935:
---------------------------------

             Summary: DropDownList doesn't handle selection properly if it is disabled immediately
                 Key: FLEX-33935
                 URL: https://issues.apache.org/jira/browse/FLEX-33935
             Project: Apache Flex
          Issue Type: Bug
    Affects Versions: Apache Flex 4.11.0
            Reporter: Andrey Fel


Here is the test app code to reproduce the issue:

<?xml version="1.0"?>
<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" 
	>
	<fx:Script>
		<![CDATA[
			import mx.collections.ArrayCollection;
			
			[Bindable]
			public var cards:ArrayCollection = new ArrayCollection(
				[ {label:"Visa", data:1}, 
					{label:"MasterCard", data:2}, 
					{label:"American Express", data:3} ]);
			
		]]>
	</fx:Script>
	
	<s:DropDownList id="list" dataProvider="{cards}" width="150" color="0x000000"
				 enabled="{list.selectedIndex == -1}"/>
		
		
</s:Application>

Try to select something in the DropDownList. It goes to invalid state.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message