-
-
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
[DateRangePicker] When any date is selected and get out of focus and then try to update the year or month it directly focuses on date #15880
Comments
Hey @Abhid1239 👋 |
Hey @noraleonte, this feature/UX is already correctly handled/present in single date picker. This only arrises in DateRangePicker and SingleDateRangePicker. I think it can be handled by the developer and can be either converted into a bug/feature |
Again after tinkering a bit more and going through the code too. API Reference
|
Thanks for looking into it more. I think the problem is that if you click on the input of the picker (when it has a value), it selects the section you clicked on, opens the picker and refocuses the first section of the input by default. I think it's something we need to look into internally 🤔 |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @Abhid1239 How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Steps:
This is an issue of focus where it doesn't get applied directly that specific year or month it get's the focused applied to the date of date picker same issue with single date pickers.
The same functionality is present in other react components library
All these library supports date picker year and month direct focus when the dates are filled
[
Screen.Recording.2024-12-14.at.14.30.04.mov
](url)
Current behavior
When any date is selected and then we try to update year or month only we get directly focused to date of the date picker
Expected behavior
When any date is selected and then we try to update year or month is should focus the year and month
Context
Correcting user experience when year selected it should focus the year when it wasn't focused. IF focused it is working correctly but not on focus
Your environment
npx @mui/envinfo
Search keywords: focus issue in date range pciker
The text was updated successfully, but these errors were encountered: