Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2515
DatePicker loses time change on dropdown of calendar
posted

I have a DatePicker defined as shown below to allow entering a time as well as a date. If I modify the time and then open the dropdown calendar, the time reverts back to whatever it was.

For example, if I programmatically set the datetime to 1/1/2016 3:00 PM, then change the time to 4:00 PM, as soon as I display the calendar the time changes back to 3:00 PM.

  $("#dte").igDatePicker({
     placeHolder: "Select Date...",
     readOnly: false,
     dateInputFormat: "dateTime",
     dateDisplayFormat: "dateTime",
     focusOnDropDownOpen: true,
     mode: "editable",
     required: true,
     value: null,
     tabIndex: 20,

  });

Parents
  • 2525
    posted

    Hello,

    I am unable to replicate this behavior utilizing the selectDate method to programmatically change the hour of the igDatePicker. I am attaching the sample I utilized for testing this behavior. Feel free to modify it if you feel it is not an accurate representation of what you are trying to achieve.

    Are you binding to any events that could potentially be setting the value of the igDatePicker after expanding the calendar (dropDownListOpened, dropDownListOpening)?

    index.zip
Reply Children