-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Allow disabling of specific dates in Date Picker #8415
Comments
This issue has been automatically marked as stale because it has not had recent activity. |
Is this feature still on the roadmap? |
Hey @daanvdberg12 at some stage we are going to replace the current date picker component, but there is no timeline on this for now. Closing in favour of: #11894 |
Hey, I really needed this feature in my project, and since it isn't currently supported natively, I came up with a workaround inspired by the discussion mentioned here #6839 Admittedly, the solution is not the cleanest, but it gets the job done for my use case. Here's the code I integrated into an
This script listens for DOM changes, locates cells with specific date titles, and applies a "disabled" effect to those cells. The key steps are:
I hope this helps anyone else facing a similar issue. Feedback is welcome if there's a better way to achieve this! |
Describe the feature request
As a user, I want to specify a list of dates that should be disabled in the date picker.
Related discussion: #8402
https://flatpickr.js.org/examples/#disabling-specific-dates
The text was updated successfully, but these errors were encountered: