[ 
https://issues.apache.org/jira/browse/TAP5-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095402#comment-13095402
 ] 

b kopelove commented on TAP5-1409:
----------------------------------

This fix is great but it introduced a different bug.  When one clicks on the 
month name at the top of the calendar, a popup list of surrounding months is 
shown.  Upon clicking one of these months, the calendar disappears because the 
javascript thinks that you have clicked "outside" the calendar and exits.

I identified a simple fix to not exit when a popup month is selected:

---change:
331      if (parent.className == 'datePicker') { 

---to:
331      if (parent.className == 'datePicker' || parent.className == 
'labelPopup') { 



> datefield - cannot select same day in different month
> -----------------------------------------------------
>
>                 Key: TAP5-1409
>                 URL: https://issues.apache.org/jira/browse/TAP5-1409
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.2.4
>            Reporter: Paul Stanton
>            Assignee: Robert Zeigler
>             Fix For: 5.3
>
>         Attachments: datepicker.js
>
>
> say your date format is m/d/yyyy and the initial value is 1/1/2011 and you 
> want to change it to 2/1/2011.. that is not possible. changing month, the 
> selected 'day' is still selected and therefore not selectable.
> use case:
> initial date is 1/1/2011
> 1. open date picker
> 2. change month to feb
> 3. try to click on 1st of feb
> - nothing happens. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to