jQuery UI Widgets Forums Editors DateTimeInput Cannot enter date if max Date is current date

This topic contains 2 replies, has 2 voices, and was last updated by  Marc 10 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • Marc
    Participant

    It appears that you cannot enter a date from the keyboard if the current value is null and max Date is set to a date in the past. Moreover, you also cannot enter a date from the keyboard if the max date is the current date. To verify, use the following declaration in the JSFiddle examples on the API page (an excellent new feature on the web page, btw):

     $("#jqxDateTimeInput").jqxDateTimeInput({
         width: '175px',
         height: '20px',
         theme: 'energyblue',
         formatString: 'MM/dd/yyyy',
         value: null,
         maxDate: new Date()
     }); 

    If you replace new Date() with new Date(tomorrow) you will be able to enter a date from the keyboard.

    A work-around to get the current date to work is to set the max date to 23:59:59.999 on the current date.


    Dimitar
    Participant

    Hello Marc,

    Thank you for your feedback. We confirm the reported issue. It will be fixed as soon as possible.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    Marc
    Participant

    Thanks Dimitar. I think the desired behavior would be for it to initialize the field with the max date or the current date, whichever is earlier, when the user starts typing.

    Marc

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.