You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2014/03/06 00:12:47 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=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)