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

expose setActiveMonths for configuring separate month instances #10

Closed
alidcast opened this issue Sep 9, 2019 · 4 comments
Closed

expose setActiveMonths for configuring separate month instances #10

alidcast opened this issue Sep 9, 2019 · 4 comments

Comments

@alidcast
Copy link

alidcast commented Sep 9, 2019

this is a feature request, I'd be great to be able to configure two separate monthly instances

say you have to month calendar views (one in August and one in September), right now the behavior is that changing the active month changes both of them (so for example if you go back a month the new view is July and August). But it'd be useful to allow changing them separately as well for selecting longer date ranges (so you can have an active view of July and September).

@alidcast
Copy link
Author

alidcast commented Sep 9, 2019

(i'm using the hooks package, btw)

@tresko
Copy link
Collaborator

tresko commented Sep 10, 2019

You can use them separately if you will use another useDatepicker hook.

@alidcast
Copy link
Author

alidcast commented Sep 10, 2019

I considered that but I imagine that then they won't be synced together when selecting a date range (given that each calendar view now has its own individual state hook instance)

in either case, my use case changed and I don't need this behavior anymore. I still feel that I'd be useful to have but feel free to close this if you're not interested in the feature

@tresko tresko closed this as completed Sep 11, 2019
@astabinski
Copy link

@tresko any thoughts about this issue? This functionality looks pretty crucial for selecting date range in two moths selected separately...

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

3 participants