-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Staying at the current month when selecting range. #3583
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
Comments
Currently, I'm using set time out, and the UI flickers to the current month/date after selecting dates beyond/below the current date. Is there plans of creating headless react hooks that we can use to create the calendar and allow more customizations? |
@ymoon715 would you please share an example of your setTimeOut solution? Got this problem as well :/ |
The UI flickers, and this is probably the most brute force way you can achieve this. I dont recommend using setTimeout at all |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This issue was closed because it has been stalled for 10 days with no activity. |
Is your feature request related to a problem? Please describe.
I currently have time range picker, where a user selects either yearly/monthly, and if they select today's date, it automatically chooses the range from today's to either year ago or month ago. However when that happens, the month automatically changes to a month/year ago and there is no way for me to control that.
Describe the solution you'd like
A call back that I can use to control the year and the month im displaying, or a prop that prevents automatic change of year and date.
Describe alternatives you've considered
I went through the doc and tried to change this in custom header, but so far no luck.
Additional context
Is there any way to do this without using a hacky method like setTimeout?
The text was updated successfully, but these errors were encountered: