-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Focus/Selectable state on DayPicker? #82
Comments
Hi @JimmyMultani, I don't think I fully understand the question (I think it may have gotten cut off). Can you clarify? |
Hey @majapw, Sorry about that. I've fixed my initial post. |
Ah I see. So what it seems like you are looking for from this issue and from #81 is that you are looking for something like a You could build something as follows:
It might make sense to include this kind of component in the repo... but we pretty much always need the input. Right now, we don't yet have keyboard navigation on the calendar itself so for us this implementation won't even be technically usable until we make that a reality. Let me know if this helps! |
Hey @majapw, Yes, your code example explains it really well! Thank you so much! |
In case it helps anyone, I found a slightly simpler (possibly inferior) workaround for disabling days on the DayPicker:
|
A quick modification to @chellberg to make the non-selectable days apparent and allow the current day to be selected
|
this no longer works, I'm on version ^21.8.0 |
Hello,
I was wondering if there was a way to have a selectable/focusable state when the user clicks on a date in the
<DayPicker />
component?For example, the
<DateRangePicker />
component has afocus
prop, but it doesn't seem like it's possible with the<DayPicker />
.Thanks.
The text was updated successfully, but these errors were encountered: