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

Disabled before modifier is broken #324

Closed
martin-svk opened this issue May 4, 2017 · 2 comments
Closed

Disabled before modifier is broken #324

martin-svk opened this issue May 4, 2017 · 2 comments

Comments

@martin-svk
Copy link

Hello,

It looks like disabled before modifier is broken.
It works good in 5.2.3 not anymore after 5.3.0 update.

Link: https://jsfiddle.net/cggxvq6t/3/.

Thanks

@gpbl
Copy link
Owner

gpbl commented May 4, 2017

Maybe it's not clear from the docs, but if you need to match days using multiple conditions, you must pass an array:

- disabledDays={{ before: myDate, after: myOtherDate }}
+ disabledDays={[ { before: myDate }, { after: myOtherDate } ]}

Check the fixed jsfiddle.
Thanks for reporting, I'll see how to improve the docs :)

@gpbl gpbl closed this as completed May 4, 2017
@martin-svk
Copy link
Author

Thanks, that works. And yes, it is not super clear, especially in combination with { from, to } where array is not needed.

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

2 participants