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][MobileDateTimePicker] Selection visible when clicking in MUI 6 #16019

Closed
dotjan37 opened this issue Dec 28, 2024 · 6 comments
Closed
Labels
accessibility a11y bug 🐛 Something doesn't work component: date time picker This is the name of the generic UI component, not the React module!

Comments

@dotjan37
Copy link

dotjan37 commented Dec 28, 2024

Steps to reproduce

Click on mobile datetimepicker, when you click on it, selection is colored of the clicked digits, this is a difference between MUI 6 and older MUI 5.
See attached screenshot
datetimepicker

Current behavior

Shows selection

Expected behavior

Do not show selection

Context

No response

Your environment

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

Search keywords: mobile datetime picker selection

@dotjan37 dotjan37 added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Dec 28, 2024
@michelengelen
Copy link
Member

Hey @dotjan37 could you share what version you are using and where you encountered this? The reason I am asking is we do have the material-ui package which is currently on v6 (MUI 6) and the advanced components, MUI-X, which are currently on v7. The datepicker is a part of the X products, so we would need to know to which version yhou are referring exactly. Thanks!

@michelengelen michelengelen added status: waiting for author Issue with insufficient information component: date 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 Jan 2, 2025
@michelengelen michelengelen changed the title Mobile Date Time Picker shows selection when clicking in MUI 6 [pickers][MobileDateTimePicker] Selection visible when clicking in MUI 6 Jan 2, 2025
@dotjan37
Copy link
Author

dotjan37 commented Jan 2, 2025

It was a screenshot from the official documentation https://mui.com/x/react-date-pickers/date-time-picker/ (under "Available components" > Mobile variant).

I see the same effect when I test it with:

"dependencies": {
    "@emotion/react": "^11.13.3",
    "@emotion/styled": "^11.13.0",
    "@fontsource/roboto": "^5.1.0",
    "@mui/icons-material": "^6.1.3",
    "@mui/material": "^6.1.3",
    "@mui/x-date-pickers": "^7.20.0",
    "dayjs": "^1.11.13",
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "react-router-dom": "^6.27.0"
}

@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 Jan 2, 2025
@michelengelen
Copy link
Member

well, it is the default behavior for our textfield and there is no standard to that, afaik 🤷🏼

@flaviendelangle or @LukasTy are the experts for this. So would any of you know if there is a standard on how the selection behavior? I checked the WAI-ARIA page, but could not find it there.

@flaviendelangle
Copy link
Member

flaviendelangle commented Jan 2, 2025

The field component of the version 6 and more recent have a new editing experience that is closer from the browser date input.
You can use the arrow the edit the selected section or type manually your value.

So the selection is fully intended 👍

However, on the mobile variant, the field is not editable so it's not great to have a section selected.
This problem will go away in the next major (v8) where the mobile variant will be editable as well.

@dotjan37
Copy link
Author

dotjan37 commented Jan 2, 2025

Yes, it was indeed about the mobile (not editable) variant.
Oké, thanks for the information and the plans for v8 !

Copy link

github-actions bot commented Jan 6, 2025

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@dotjan37 How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

@github-actions github-actions bot removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y bug 🐛 Something doesn't work component: date time picker This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

3 participants