Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-28519

Changing minDate via states causes a different mindate to be used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • Mobile: DateSpinner
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Create a flex mobile application with this View:

      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      title="States View">

      <s:states>
      <s:State name="firstSt" />
      <s:State name="secondSt" />
      </s:states>

      <s:actionContent>
      <s:Button label="toggle" click="currentState=currentState=='firstSt'?'secondSt':'firstSt';" />
      <s:Button label="trace" click="trace(ds_states_full.minDate)" />
      </s:actionContent>

      <s:DateSpinner id="ds_states_full"
      minDate.firstSt="

      {new Date(2010, 3, 5, 6, 17, 6)}

      "
      minDate.secondSt="

      {new Date(1098, 8, 3, 4, 15, 51)}

      "
      />

      </s:View>

      2. Click trace
      3. Click toggle
      4. Click trace

      Actual Results:

      Mon Apr 5 06:17:06 GMT-0700 2010
      Mon Jan 1 00:00:00 GMT-0800 1601

      Expected Results:

      Mon Apr 5 06:17:06 GMT-0700 2010
      Sat Sep 3 04:15:51 GMT-0800 1098

      (This is behavior pre 4.6.0.22547)

      Workaround (if any):

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: