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

[DateTimePicker] Scroll to Digital Clock section only when selection changes #9434

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

LukasTy
Copy link
Member

@LukasTy LukasTy commented Jun 23, 2023

Fixes #9389

This change results in a new compromise: we no longer scroll when selecting an already selected item.
Ant design also has the same compromise: https://ant.design/components/date-picker

@LukasTy LukasTy added bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module! component: DateTimePicker The React component. labels Jun 23, 2023
@LukasTy LukasTy self-assigned this Jun 23, 2023
@mui-bot
Copy link

mui-bot commented Jun 23, 2023

Netlify deploy preview

Netlify deploy preview: https://deploy-preview-9434--material-ui-x.netlify.app/

Updated pages

No updates.

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 476.1 1,011.3 581.5 808.84 231.284
Sort 100k rows ms 501.3 1,173.2 1,173.2 943.32 230.617
Select 100k rows ms 243 252.5 249.4 248.7 3.194
Deselect 100k rows ms 129.5 321.7 284.3 240.66 83.664

Generated by 🚫 dangerJS against 55a31ed

@LukasTy LukasTy merged commit 575be07 into mui:master Jun 27, 2023
@LukasTy LukasTy deleted the fix-digital-clock-scrolling-logic branch June 27, 2023 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: DateTimePicker The React component. component: pickers This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pickers] Time selection in DateTimePicker only on second click
3 participants