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:18:16 UTC

[jira] [Resolved] (FLEX-21365) Able to select dates in a DateField after the the selectableRange's rangeEnd property

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

Justin Mclean resolved FLEX-21365.
----------------------------------

    Resolution: Cannot Reproduce

Looks like issue has been fixed in previous SDK can't reproduce in Apache Flex 4.9.1
                
> Able to select dates in a DateField after the the selectableRange's rangeEnd property
> -------------------------------------------------------------------------------------
>
>                 Key: FLEX-21365
>                 URL: https://issues.apache.org/jira/browse/FLEX-21365
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: mx: DateField
>    Affects Versions: Adobe Flex SDK 3.0 (Release)
>         Environment: Affected OS(s): Windows
> Affected OS(s): Windows
> Browser: Firefox 3.x
> Language Found: English
>            Reporter: Adobe JIRA
>
> 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();
> }

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