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

Outside days doesn't work #67

Closed
intpp opened this issue Sep 7, 2016 · 3 comments
Closed

Outside days doesn't work #67

intpp opened this issue Sep 7, 2016 · 3 comments

Comments

@intpp
Copy link

intpp commented Sep 7, 2016

In your example too.

Live demo

@majapw
Copy link
Collaborator

majapw commented Sep 7, 2016

What do you mean by "doesn't work"? I both see and am able to interact with the outside days -
screen shot 2016-09-07 at 10 59 43 am

@intpp
Copy link
Author

intpp commented Sep 8, 2016

I can't select past dates. Is it previous option "allowPastDate"?

@majapw
Copy link
Collaborator

majapw commented Sep 8, 2016

Ah, yes. outside days in this context describes days from the previous and next month that are by default not shown. What you are looking for in this context is isOutsideRange.

From the README:
isOutsideRange indicates which days are out of selectable range. Past dates out of range by default. If you would like to allow the user to select days in the past, you may set isOutsideRange to () => false.

It might be good to (a) add this to the storybook as an example and (b) to actually make the README prop sections linkable. :P

@majapw majapw closed this as completed Sep 8, 2016
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