flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Hunt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33823) Certain DateField format strings causes null value in selectedDate
Date Tue, 15 Oct 2013 08:47:45 GMT

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

Robert Hunt commented on FLEX-33823:

I have added a button (that does nothing) to the test case:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
        <s:VerticalLayout />

    <mx:DateField id="df" formatString="DD/MMM/YYYY"/>
    <mx:Label text="{df.selectedDate.toString()}" />
    <mx:Button label="Click Me"/>

When using the "DD/MMM/YYYY" format it seems clicking on the button after picking a date causes
the selectedDate to get set to null. I also experienced the same behaviour without the button
when the swf loses focus (eg: switch browser tabs or focus another application) and then regains
focus, the selectedDate was getting set to null when focus was gained again.

> Certain DateField format strings causes null value in selectedDate
> ------------------------------------------------------------------
>                 Key: FLEX-33823
>                 URL: https://issues.apache.org/jira/browse/FLEX-33823
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: DateField
>    Affects Versions: Apache Flex 4.10.0
>         Environment: Affected OS(s): Mac
> Browser: Firefox
> Language Found: English
>            Reporter: Robert Hunt
>            Assignee: Justin Mclean
> This is identical to FLEX-16656 but it appears the bug still occurs when certain format
strings are used. I have discovered that the two letter month "MM" works fine but the three
letter month "MMM" does not. The following definition caused the selectedDate property to
be set to null after a date is chosen:
> <mx:DateField id="badDateField" formatString="DD/MMM/YYYY"/>
> EG: 14/Oct/2013
> The following appears to work fine and doesn't cause the date to be set to null after
a date is chosen:
> <mx:DateField id="goodDateField" formatString="DD/MM/YYYY"/>
> EG: 14/10/2013

This message was sent by Atlassian JIRA

View raw message