Duration not updated when changing time using setTime
Closed this issue · 1 comments
mayankaggarwal092 commented
When you change the value of start time and end time using the setTime method of timepicker, the duration is not updated. Instead we see duration that correspond to earlier start time.
jonthornton commented
Datepair is triggered by the change
event. You can cause the duration update by firing a synthetic event after calling setTime
. With jQuery, you'd do something like this:
$('#someTimeInput').timepicker('setTime', new Date()).trigger('change')