[ 
https://issues.apache.org/jira/browse/FLEX-23834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean resolved FLEX-23834.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Apache Flex 4.10.0

Checked into develop branch
                
> mx.controls.DateField with editable=true and DataGrid itemEditor
> ----------------------------------------------------------------
>
>                 Key: FLEX-23834
>                 URL: https://issues.apache.org/jira/browse/FLEX-23834
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: DateField
>    Affects Versions: Adobe Flex SDK 3.3 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>             Fix For: Apache Flex 4.10.0
>
>
> Steps to reproduce:
>       <mx:Array id="data">
>               <mx:Object date="{new Date()}" />
>       </mx:Array>
>       <mx:DataGrid dataProvider="{data}" editable="true">
>               <mx:columns>
>                       <mx:DataGridColumn headerText="correct" 
> dataField="date" editorDataField="selectedDate" 
> itemEditor="mx.controls.DateField" />
>                       <mx:DataGridColumn headerText="incorrect" 
> dataField="date" editorDataField="selectedDate" >
>                               <mx:itemEditor>
>                                       <mx:Component>
>                                               <mx:DateField editable="true" />
>                                       </mx:Component>
>                               </mx:itemEditor>
>                       </mx:DataGridColumn>
>               </mx:columns>
>       </mx:DataGrid>
>  
>  Actual Results:
>  When you start editing "correct" column(in example above) and press Escape, 
> editing is cancelled. But when you start editing "incorrect" column and press 
> Escape nothing happens and editing continues.
>  
>  Expected Results:
> Editing should be cancelled in both cases.
>  
>  
>  Workaround (if any):
> mx.controls.DateField class overrides keyDownHandler and checks for Escape 
> key. But the problem is it calls event.stopPropagation() which prevents 
> DataGrid to get Escape key down event inorder to cancel editing mode. 
> Workaround is to comment that one line or extend DateField class, override 
> keyDownHandler and not call super.keyDownHandler. In this case you loose key 
> navigation in DateField but get editing cancellation in case of DataGrid item 
> editor.

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

Reply via email to