amsul / pickadate.js

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.
http://amsul.ca/pickadate.js
MIT License
7.7k stars 1.01k forks source link

Disable dates doesn't work as expected #1105

Closed gitllermopalafox closed 6 years ago

gitllermopalafox commented 6 years ago

Hi,

I'm trying to disable all dates except one after the date picker is created, I tried 3 different ways to do it, in 2 of them only the date that I'm expect to be enable is disabled and in the other one all dates are disabled.

Here is a fiddle:

http://jsfiddle.net/gpalafox/oykha93n/11/

Thanks.

gitllermopalafox commented 6 years ago

My bad... use the "Flip" option to achieve this behavior...

picker.set('enable', 'flip')