jannicz / appointment-picker

Appointment Picker - a tiny JavaScript timepicker that helps you pick appointments

Home Page:https://jannicz.github.io/appointment-picker/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a case to the valid check

Sw0rdiX opened this issue · comments

commented

if (hour < opt.minTime || hour > opt.maxTime || hour > 24) { // Out of min/max

maxTime sets the maximum hour that can be picked, default is 24

it mean that e.g 9 is set that 9:15 cannot be picked or ?

if yes, add please this check (hour === opt.maxTime && minute) for the intervals, in the moment u can pick 9:00 as last maxTime is correct, but not the 9:[intervals].
} else if(hour === opt.maxTime && minute > 0){

@Sw0rdiX indeed, you are right. Fix is on the way...