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

Dropdown does not align properly when using noneOption and MinTime together

Open Zelig880 opened this issue 7 years ago • 0 comments

If timepicker configuration includes a couple of none options and a MinDate, when clicking on the input field, the dropdown will scroll down to and just show the last NoneOption instead than start from the top.

An example code is: $("#timepickerInput").timepicker({ "noneOption": [ { "label": "OFF", "value": "OFF", "className": "black" }, { "label": "HOL", "value": "HOL", "className": "green" }, { "label": "EDU", "value": "EDU", "className": "yellow" }, { "label": "BANK", "value": "BANK", "className": "blue" }, { "label": "SICK", "value": "SICK", "className": "red" } ], "timeFormat": "H:i", "minTime": "8:00", "maxTime": "23:30" });

This will show: image

instead than:

image

Can replicate. The only way to solve the issue if to remove the MinTime

Zelig880 avatar Feb 13 '18 20:02 Zelig880