flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33935) DropDownList doesn't handle selection properly if it is disabled immediately
Date Wed, 05 Mar 2014 23:12:47 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33935?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921592#comment-13921592
] 

Justin Mclean commented on FLEX-33935:
--------------------------------------

Confirmed still an issue in 4.12. Took a quick look and nothing obvious as the skin is being
invalidated.

Another example that has the same issue - just to show it not binding related.

{code}
<?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;
			import spark.events.IndexChangeEvent; 
			
			[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" change="list.enabled
= false"/> 
	
	
</s:Application> 
{code}


> 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
>              Labels: easyfix, easytest
>
> 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.2#6252)

Mime
View raw message