Changes end time when changing date
Closed this issue · 3 comments
How to reproduce:
-
Go to basic example at https://www.jonthornton.com/Datepair.js/
-
Set start date to current date.
-
Set time to 2:00am.
-
Set end time to 5:00am.
-
Change start date to yesterday. End date is changed to yesterday (as expected). End time is now changed from 5:00am to 3:00am.
Changing the date further does not change the end time.
After some investigation it seems like this is an issue in https://github.com/jonthornton/jquery-timepicker/
I'm unable to replicate the issue when using jquery.timepicker 1.13.14. With any newer version I get the outcome in this issue.
@espen you're correct, there was an event bubbling bug in jquery.timepicker jonthornton/jquery-timepicker@0873fe4
It should be fixed now.
New version works perfectly. Thanks @jonthornton 🙏