-
-
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] Strange focus behavior with a selected value when switching months #11756
Comments
Thanks @LukasTy, |
@LukasTy, https://i.gyazo.com/5f62a7934481242125daa9fb9203ad80.gif edit: looks like it happens on month change even if a new selection isn't made any way to disable this if a selection exists? |
@ahellam Thank you for reporting this. |
Pretty sure that I accidentally introduced this issue when i attempted to fix the autofocus behavior back in this pr: Funnily enough the issue outlined here in 11756 is actually more annoying that what i "fixed" can we just revet that old PR of mine? @LukasTy Or at the very least check |
@kealjones-wk is there a reason why you suspect that it was your change? 🤔 |
After more exploration, I think that the problem is relevant to the overall calendar state (not only
In this case, IMHO, the focus should have the following priority. Move focus to:
|
@LukasTy I dont think i was able to reproduce the particular issue you lay out in your last comment... I do like your focus priority but believe recently an issue was resolved about the reference date getting the focus so maybe something like: Assuming that
Here is a little video of the issue I am currently facing: focus-date-range-calendar.mp4In the video you can see that using the keyboard I focus the previous month navigation button and hit Enter, only to then have the next month steal the focus from the navigation button. Imagine a keyboard user is trying to quickly run through months this would be incredibly annoying to have that nav button constantly lose focus. I don't know exactly how to handle this as i do like the focus behavior for first displayed but think that navigating through that months shouldn't cause the focus to change like that. For some context: I am wrapping DateRangePicker to create our libraries own custom DateRangePicker that works more similarly to DatePickers (has toggle buttons and ability to focus the calendar via keyboard and such) |
@kealjones-wk and @LukasTy, I'm reaching out to inquire about any recent updates or progress regarding the previously mentioned visual bug. Our Quality Assurance has identified and flagged this issue, but we found that is was still an open issue for mui. |
Thank you for reaching out, @larsrijnen-whyellow. 🙏 |
Summary
Goal: to make something similar to the week picker but my selection may overflow into the next month so seeing two calendars would be helpful.
Request: Add a calendars prop similar to the range to choose how many calendars are visible.
Examples
No response
Motivation
Our customers have different kinds of pay periods which might be weekly, every two weeks etc and these can start on any day of the week. This means the pay period might overflow into the next month and it would be nice to see the whole pay period highlighted.
Search keywords: DateCalendar calendars prop
Order ID: 78587
The text was updated successfully, but these errors were encountered: