You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Andrey Fel (JIRA)" <ji...@apache.org> on 2013/11/26 13:19:35 UTC

[jira] [Commented] (FLEX-33935) DropDownList doesn't handle selection properly if it is disabled immediately

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

Andrey Fel commented on FLEX-33935:
-----------------------------------

When change event is dispatched DropDownList.enabled is set to false. It invalidates the skin, but the skin is not redrawn, updateDisplayList is not called for the skin.

> 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)