Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can’t enable dates within a range of disabled dates. #248

Closed
ro-ka opened this issue Oct 15, 2013 · 3 comments
Closed

Can’t enable dates within a range of disabled dates. #248

ro-ka opened this issue Oct 15, 2013 · 3 comments

Comments

@ro-ka
Copy link
Contributor

ro-ka commented Oct 15, 2013

I try to reenable some dates that have been disabled. But nothing happens.

Use case is that I want to model opening hours. There are regular days where it is closed (disabled). on some days though, it is open, so I want to enable that specific date.

I use the set disable calendar on the demo page as an example (http://amsul.ca/pickadate.js/api.htm#method-set-disable). Open the calendar and execute the following in the console:

picker_set__disable_date.set('disable', [1, 4, 7]);
picker_set__disable_date.set('enable', [[2013, 9, 9]]);

October 9th, 2013 keeps being disabled. I would expect it to be enabled.

Using version 3.3.0 in Chrome 30 on Mac OSX.

@amsul
Copy link
Owner

amsul commented Oct 30, 2013

Yeah, that sucks. Currently you can enable only what you’ve specifically disabled. I hope to improve this in future iterations.

Thanks for bringing it up!

@sgerin
Copy link

sgerin commented Nov 7, 2013

Just had this problem. It would be cool if you could do this.
Does someone have a workaround for this?
Thanks.

@ro-ka
Copy link
Contributor Author

ro-ka commented Nov 7, 2013

No workaround other than waiting. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants