-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[pickers] Allow controlling the current calendar month #10869
Comments
Thank you for creating this issue! 🙏 I'm moving this issue to our grooming board to discuss the best solution we can take here. Could you please expand on what kind of implementation you are looking into for this button?
|
Hey, sure no problem. I think the best implementation would be more just being able to scroll to a particular date without affecting the value/ selection the user has made. In our case, the Today button we use should scroll the user back to todays date without changing the value they may have already selected. But maybe it's more useful to allow people to be able to scroll to a specific date without affecting the selection regardless? In our case inside the action bar works fine though if we wanted the today button there |
Thank you for your feedback. 🙏 |
Can you show me an example of this? Because whenever we use the Today button it sets the value, we want to be able to select today and for it to navigate/scroll us back to the current month/date but not select todays date and keep the users current selection EDIT: Oh sorry misread, I get what you mean we already have a today button that does the selection haha - yea I think it should be a function we can call to just navigate/scroll to a selected date without affecting the value |
Is this a function you guys can add @LukasTy ? |
Sure, anything can be done. 👍 My idea was to make the |
We discussed that the plan is to support this only on the new upcoming DX, which will make the implementation easier. |
The problem in depth 🔍
We're using the Date Range Calendar component, and we'd like to have a "Today" button, where when clicked we scroll the user back to todays date but don't select todays date, or deselect any range they currently have selected.
Is this currently possible, or would this have to be an added feature to be able to scroll to a specific date without changing the value?
Your environment 🌎
`npx @mui/envinfo`
Search keywords: date range calendar
Order ID: 75677
The text was updated successfully, but these errors were encountered: