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

Able to select dates in a DateField after the the selectableRange's rangeEnd property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • Adobe Flex SDK 3.0 (Release)
    • None
    • mx: DateField
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows
      Browser: Firefox 3.x
      Language Found: English

    Description

      I have a DateField component with yearNavigationEnabled="true" and selectableRange="rangeEnd:new Date()"
      this allows me to only select dates from today and backwards
      but I have found a way to select dates past the rangeEnd

      Steps to reproduce:
      1. when selecting a date, move the year back one
      2. then move the month forward one
      3. then move the year forward one
      4. you can now select dates past the rangeEnd property

      Actual Results:
      for example when I first found this the current date was 30th September 2009
      and I could not select past it, however using the steps above
      I could select dates in October 2009 and all the way up to August 2010

      Expected Results:
      I would assume that it would check the dates/months/years the yearNavigation is scrolling to
      against the rangeEnd property, and then not move forward, or set it to the closest date

      Workaround (if any):
      currently I have the following method that i run on the change Event
      all it does is check that if selected date is greater than the current Date, which is my rangeEnd
      then if it is, then sets it to new Date

      dob is the id of my DateField

      if(dob.selectedDate > new Date()) {
      dob.selectedDate = new Date();
      }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: