jquery-timepicker icon indicating copy to clipboard operation
jquery-timepicker copied to clipboard

DisableTimeRange and minTime Conflict

Open neethukc opened this issue 7 years ago • 1 comments

Hi sir,

DisableTimeRange is not working if DisableTimeRange less than minTime.


$('.timepicker').timepicker({ 
            'timeFormat': 'h:i A',
            'minTime' : "11:30 am",
            'step': '30',
            'disableTimeRanges': [['10am', '11am']]
        });

Please find it in the fiddle http://jsfiddle.net/neethukcbsb/95hpwcfw/1/

Is there a solution for this problem ? Thank you.

neethukc avatar Nov 22 '17 11:11 neethukc

This should solve your problem.

$('.timepicker').timepicker({ 
            'timeFormat': 'h:i A',
            'minTime' : "11:30 am",
            'maxTime' : "09:30 am",
            'step': '30',
            'disableTimeRanges': [['10am', '11am']]
            
        });

VTTodorov avatar Feb 01 '18 09:02 VTTodorov

This will finally be fixed in the next release. Sorry for the wait!

jonthornton avatar Sep 26 '22 02:09 jonthornton