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
Add SelectionMode which doesn't allow unselecting a date #64
Comments
@CmdrSharp Hello! You can easily implement it on your side, a quick POC would be:
Let me know if this satisfies your use-case! |
@boguszpawlowski Seems like a reasonable solution - I came up with another one, as I show in the post - but I still think it might make a good native addition to the library. Based on the current options, it seems to make sense :) |
@CmdrSharp I think it's too specific for an addition to the library itself. It has a limited amount of native selection state-s by a design, as they are easily extensible and the larger amount of options would introduce more confusion then benefits. But actually, I think there is a middle ground -> we could modify the
What do you think? |
That seems like a reasonable implementation! |
Hi! Thanks again for a great project :)
It would be nice to have a SelectionMode where a selection is always made (so basically the Single selection date, without the ability to UNSELECT a date).
One way to implement this now is by creating a custom day component where you simply don't react in the onClick-event if the click is on the current day, like so:
The text was updated successfully, but these errors were encountered: