Closed espen closed 3 years ago
Me too.
When I changed start time, couldn't call updateTime
.
I haven't tested but I think this is caused by this issue: https://github.com/jonthornton/Datepair.js/issues/128#issuecomment-757516726
@espen you're correct, there was an event bubbling bug in jquery.timepicker jonthornton/jquery-timepicker@0873fe4
This should be fixed now.
How to reproduce:
Go to events example at https://www.jonthornton.com/Datepair.js/
Choose start date. 'Valid range selected' is triggered.
Set 2:00am as start time. No event is triggered.
Set 3:30am as end time. No event is triggered.
Remove end time. 'Incomplete range' is triggered.
Set 3:30am as end time. No event is triggered.
Go to end date and select the same date as before. 'Valid range selected' is triggered.
When changing date valid range event is always triggered. Not when changing time.