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

Select multiple dates #3157

Closed
pooyarm opened this issue Aug 20, 2021 · 3 comments · Fixed by #3999
Closed

Select multiple dates #3157

pooyarm opened this issue Aug 20, 2021 · 3 comments · Fixed by #3999
Labels

Comments

@pooyarm
Copy link

pooyarm commented Aug 20, 2021

Is your feature request related to a problem? Please describe.
It's not a problem, it's a use-case. In our platform our users should be able to select multiple dates (not a range, but an array of dates).

Describe the solution you'd like
To have an option to select multiple dates.

Describe alternatives you've considered
Of course there are other packages we can use but we were thinking about using this package since it looks modern and allows us to get rid of moment.

@mpiorowski
Copy link

I was able to do it using highlightDates option. On onChange concat or filter array of dates, set selectedDate to null, and style everything so that selected dates wont be visible. Now your highlightDates is the new value of datepicker.

@pooyarm
Copy link
Author

pooyarm commented Aug 25, 2021

Yes, that was an idea I also thought about, but it's kinda a hacky trick and that feature is not supposed to be used like that. So at the end I'm not sure if it's the best way to do it.

@stale
Copy link

stale bot commented Mar 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants