You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/29 10:04:17 UTC

[jira] [Resolved] (FLEX-20081) DateField dropdown not reset to current date if null assigned to DateField selectedDate property

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

Justin Mclean resolved FLEX-20081.
----------------------------------

       Resolution: Not A Problem
    Fix Version/s: Apache Flex 4.10.0

Fixed in previous version of Flex SDK.
                
> DateField dropdown not reset to current date if null assigned to DateField selectedDate property
> ------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-20081
>                 URL: https://issues.apache.org/jira/browse/FLEX-20081
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: DateField
>    Affects Versions: Adobe Flex SDK 3.2 (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
>
>
> Set up:  MXML application with a DateField, and a way to assign null to the DateField's selected date from ActionScript.  Code example is attached.
> Steps to reproduce:
> 1. Assign a date to a date field using the dropdown that is several months away from the current date
> 2. The selected date will show in the date input field, the DateField object's selectedDate property will be the date selected in the dropdown.
> 3.  In ActionScript, assign null to the DateField object's selectedDate property
> 4. The date input field will become blank.  Open the date field object's dropdown again and notice the month/day is not set correctly.
>  
>  Actual Results:
>  When null is assigned, the date field dropdown will no longer have a day selected, but the month will remain as the month of the previously assigned date.
>  
>  Expected Results:
>  When null is assigned, the date field dropdown should reset to the current date, which is the default state for the dropdown when new.
>  
>  Workaround (if any):
>  Manually assign a new date value to DateField's 'dropdown.selectedDate' property.
> Only tested on Mac OXS, but has been confirmed on Windows as well. Code example attached.

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