pickadate.js icon indicating copy to clipboard operation
pickadate.js copied to clipboard

Time picker disable wrong range

Open lgwozniak opened this issue 7 years ago • 7 comments

I have an example:

  • interval is 15 min
  • excluded time range is from: 4:00 to 15:40

and the time 15:45 is disabled, which shouldn't be. Is this common problem ?

lgwozniak avatar Oct 31 '18 13:10 lgwozniak

Please show us your config and provide a working codepen.

DanielRuf avatar Nov 02 '18 05:11 DanielRuf

I'm using 3.5.6 library.

https://codepen.io/anon/pen/NEKvXo

lgwozniak avatar Nov 02 '18 07:11 lgwozniak

Any progress with this bug ?

lgwozniak avatar Jun 01 '20 14:06 lgwozniak

As you can see I did not check that further. Your demo has all options enabled + interval 15 minutes. Is this the reproducible testcase?

DanielRuf avatar Jun 01 '20 14:06 DanielRuf

i got this problem all the time. I found a workaround in the form of rounding to a given interval, but this is not the best solution.

lgwozniak avatar Jun 01 '20 15:06 lgwozniak

At least the from - to demo does not work with the current 3.6.4 version: https://amsul.ca/pickadate.js/time/#disable-times-use-ranges

I think it is a rounding problem that is still not fixed.

https://codepen.io/DanielRuf/pen/MWKgmBj

But v3 is not developed anymore, v5 is the current and latest version.

DanielRuf avatar Jun 01 '20 15:06 DanielRuf

Thanks for information. v5 is in alpha, I can't use it on production.

lgwozniak avatar Jun 02 '20 07:06 lgwozniak