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

Issue with Date / Time pickers v5.0.20 #13403

Closed
sandeep-dash opened this issue Jun 6, 2024 · 2 comments
Closed

Issue with Date / Time pickers v5.0.20 #13403

sandeep-dash opened this issue Jun 6, 2024 · 2 comments
Labels
component: pickers This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information

Comments

@sandeep-dash
Copy link

sandeep-dash commented Jun 6, 2024

Steps to reproduce

Link to live example: (https://codesandbox.io/p/sandbox/zealous-mahavira-g4ti1p?file=%2Fdemo.tsx)

Steps:

  1. Select the DateTimePicker
  2. Select a date from the calendar
  3. Tab and shift focus to the time clock
  4. Press 'Enter' key to make the time selection on the clock
  5. The 'Enter' key does not make the time selection
  6. Selecting the 'Esc' key selects the time selected by the user

Current behavior

Steps:

  1. Select the DateTimePicker
  2. Select a date from the calendar
  3. Tab and shift focus to the time clock
  4. Press 'Enter' key to make the time selection on the clock
  5. The 'Enter' key does not make the time selection
  6. Selecting the 'Esc' key selects the time selected by the user
  7. User is also able to save a future date via Keyboard even when future dates are disabled

Expected behavior

User should be able to select a time via keyboard using the 'Enter' key instead of the 'Esc' key

Context

What we are trying to accomplish is resolve 508 accessibility compliance issues. These are a must for web based applications in USA and other countries as well. Not being able to solve this issue poses a serious challenge in delivering a bug free web application

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: DateTimePicker 508 compliance keyboard issue

Search keywords:

@sandeep-dash sandeep-dash added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jun 6, 2024
@zannager zannager transferred this issue from mui/material-ui Jun 6, 2024
@zannager zannager added the component: pickers This is the name of the generic UI component, not the React module! label Jun 6, 2024
@LukasTy
Copy link
Member

LukasTy commented Jun 7, 2024

Hello @sandeep-dash, thank you for creating this issue.

Let me start by saying that we already have an issue (#9636) for adding the keyboard selection in TimeClock. So, if that's the only problem, it looks like the issue is a duplicate. 🤷

As mentioned in the linked issue, you can use the DesktopDateTimePicker if you'd upgrade to v6, which has a different behavior intended mostly for the desktop use.

A side note: v5 is no longer maintained, if you wish to get any bug fixes, consider upgrading to at least v6, but preferably to v7. 😉

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

The issue has been inactive for 7 days and has been automatically closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

3 participants