Closed espen closed 3 years ago
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 https://github.com/jonthornton/jquery-timepicker/commit/0873fe4ab3195ecb94245caea829f86c66b191c6
It should be fixed now.
New version works perfectly. Thanks @jonthornton 🙏
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.