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][TimePicker] Minute range 56-59 cannot be selected #13125

Closed
hth520 opened this issue May 14, 2024 · 3 comments
Closed

[pickers][TimePicker] Minute range 56-59 cannot be selected #13125

hth520 opened this issue May 14, 2024 · 3 comments
Labels
component: pickers This is the name of the generic UI component, not the React module! component: time picker This is the name of the generic UI component, not the React module! status: waiting for author Issue with insufficient information

Comments

@hth520
Copy link

hth520 commented May 14, 2024

Current behavior

Snipaste_2024-05-14_17-19-14
When I wanted to select minutes 56-59, I found that the drop-down box had no options for me to choose from

Expected behavior

56-59 minutes? Nobody's ever had that problem

Context

56-59 minutes? Nobody's ever had that problem

Your environment

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

Search keywords: Minute 56-59 notSelected

@hth520 hth520 added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label May 14, 2024
@zannager zannager added the component: pickers This is the name of the generic UI component, not the React module! label May 14, 2024
@michelengelen
Copy link
Member

Hey @hth520 you can adjust the steps with the timeSteps prop:

<TimePicker label="Basic time picker" timeSteps={{ minutes: 1 }} />

This is not documented, is it @LukasTy? 🤔

@michelengelen michelengelen added status: waiting for author Issue with insufficient information component: time picker This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels May 14, 2024
@michelengelen michelengelen changed the title TimePicker Minute range 56-59 cannot be selected [pickers][TimePicker] Minute range 56-59 cannot be selected May 14, 2024
@LukasTy
Copy link
Member

LukasTy commented May 17, 2024

@michelengelen @hth520 please find the documentation for timeSteps here.
The default is step to "5-minute" steps.
Technically, "60" minutes do not exist in time calculation, so, there are no more options to put after 55, so then next one would be 0 minutes on the next hour.
Screenshot 2024-05-17 at 17 06 52

Does that answer your question or do you see a problem with it? 🤔

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! component: time picker 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

4 participants