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

[pickers] add option to open calendar popover when text field is selected #13446

Open
sodehl opened this issue Jun 11, 2024 · 4 comments
Open
Labels
component: date picker This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/

Comments

@sodehl
Copy link

sodehl commented Jun 11, 2024

Summary

The DateRangePicker opens the calendar popover automatically when one of the text fields is selected. It would be great to have the same behavior for the DatePicker component.

Examples

No response

Motivation

In our user tests, we found that some users do not realize they need to click the icon in the text field to open the calendar popover. They expect the popover to open automatically when the text field is selected, similar to the behavior of the DateRangePicker.

Search keywords: Date Field, Calendar Popover
Order ID: 68930

@sodehl sodehl added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 11, 2024
@michelengelen michelengelen added component: pickers This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/ component: date picker This is the name of the generic UI component, not the React module! labels Jun 12, 2024
@michelengelen
Copy link
Member

Hey @sodehl and thanks for raising this issue.
I do agree that we should at least allow for this to be opt-in.
Its a slight discrepancy between the products.

@LukasTy I could not find a very effective way of providing a workaround. Do you have something available from the top of your head?

@michelengelen michelengelen removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 12, 2024
@LukasTy
Copy link
Member

LukasTy commented Jun 12, 2024

Hello @sodehl, FWIW, the behavior on the DateRangePicker is somewhat of a discrepancy, if you compare it to the native date input.
We were discussing aligning this behavior, but not in the suggested way, instead, the Date Range Picker (currently uses a tooltip behavior) would behave more like a regular Picker (dialog behavior).

One could say that opening the Picker view could also be triggered when pressing Space on the input/field, just like on the native date input.
WDYT @sodehl, would it be a good middle-ground in your view? 🤔

@LukasTy LukasTy added the status: waiting for author Issue with insufficient information label Jun 12, 2024
@sodehl
Copy link
Author

sodehl commented Jun 13, 2024

@LukasTy opening the picker view with the space key would be a great improvement, especially for more experienced users who know the shortcut. However, we discovered that our users expect the picker view to open when they select the text field. So, I think introducing a keyboard shortcut does not solve the problem. BTW: The native date input in Safari opens the calendar popover automatically when the input is selected. Here, the native date input tends to be more like the current behavior of the DateRangePicker.

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Jun 13, 2024
@LukasTy
Copy link
Member

LukasTy commented Jun 13, 2024

@sodehl thank you for your comment and sharing the experience. 👍
We'll discuss this proposal among the team, but I'll say that Safari has the worst example of native date input in regards to a11y, they do not support the calendar/dialog behavior at all. 🙈
Given this fact, I would not like to treat this exception as a role model.

@LukasTy LukasTy removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: date picker This is the name of the generic UI component, not the React module! component: pickers This is the name of the generic UI component, not the React module! enhancement This is not a bug, nor a new feature support: pro standard Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
Projects
None yet
Development

No branches or pull requests

3 participants