You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Jeremy Wischusen (JIRA)" <ji...@apache.org> on 2013/04/30 14:14:15 UTC
[jira] [Commented] (FLEX-17084) Unexpected behavior in ComboBox
[ https://issues.apache.org/jira/browse/FLEX-17084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645522#comment-13645522 ]
Jeremy Wischusen commented on FLEX-17084:
-----------------------------------------
Still occurring using SDK 4.9.1 on Mac OS X 10.7.5 using provided code.
> Unexpected behavior in ComboBox
> -------------------------------
>
> Key: FLEX-17084
> URL: https://issues.apache.org/jira/browse/FLEX-17084
> Project: Apache Flex
> Issue Type: Bug
> Components: mx: ComboBox
> Affects Versions: Adobe Flex SDK Previous
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Labels: easytest
>
> Steps to reproduce:
> 1. MAIN APP SOURCE
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
> <mx:Script> <![CDATA[
> import mx.controls.Button;
> import mx.events.DropdownEvent;
> private var statesXML:XML = <root>
> <state sel="true" name="Alabama" />
> <state sel="false" name="Alaska" />
> <state sel="false" name="Arizona" />
> <state sel="false" name="Arkansas" />
> <state sel="false" name="California" />
> <state sel="true" name="Colorado" />
> <state sel="false" name="Connecticut" /></root>;
> [Bindable]
> private var statesXMLList:XMLList = statesXML.state;
> private function closeHandler(ev:DropdownEvent):void{
> return
> }
> ]]
> > </mx:Script>
> <mx:ComboBox id="ComboBoxCheck" left="200" top="200"
> width="200"
> close="closeHandler(event)"
> prompt="select..."
> dataProvider="{statesXMLList}"
> rowCount="3"
> labelField="@name"
> itemRenderer="ComboBoxCheckItemRenderer" />
>
> </mx:Application>
> <?xml version="1.0" encoding="utf-8"?>
> SOURCE FOR ComboBoxCheckItemRenderer.mxml:
> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" width="80" height="25" horizontalScrollPolicy="off">
> <mx:Script> <![CDATA[
> private function changeHandler(ev:Event):void{
> // var xml:XML = new XML(data as XML);
> // xml.@sel=CB.selected?'true':'false';
> // data = xml;
> ev.stopImmediatePropagation();
> ev.preventDefault();
> }
> ]]
> >
> </mx:Script>
> <mx:CheckBox selected="{data.@sel=='true'}" click="changeHandler(event)" />
> <mx:Label text="{data.@name}"/>
> </mx:HBox>
> 2.
> open combo box
> click on check box
> 3.
>
> Actual Results:
> ComboBox closes dropdownlist most of the time on checkbox click. It happens sometimes that the dropdown list doesn't close (mainly on second item for some reason)
>
> Expected Results:
> ComboBox never closes dropdown list on checkbox click
>
> 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