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] Error in console using MobileDatePicker #14639

Closed
sharifmacky opened this issue Sep 16, 2024 · 4 comments
Closed

[pickers] Error in console using MobileDatePicker #14639

sharifmacky opened this issue Sep 16, 2024 · 4 comments
Labels
bug 🐛 Something doesn't work component: date picker This is the name of the generic UI component, not the React module! component: date time 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! mobile Targets mobile platform

Comments

@sharifmacky
Copy link

sharifmacky commented Sep 16, 2024

Steps to reproduce

Error in console using mobile-date-picker:
create-event:1 Blocked aria-hidden on a element because the element that just received focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden.

Steps to reproduce:
-Visit https://mui.com/x/react-date-pickers/date-picker/
-Open devtools
-Toggle device toolbar to Mobile (ie. Select Mobile mode)
-Click on the Mobile variant DateTimePicker
-Click Cancel
-Observe Error in console
Note there is another issue when opening devtools in mobile mode (Error: Minified React error mui/material-ui#418) which prevents this error from showing. Follow the above steps in the exact order.

Current behavior

Error

Expected behavior

No Error

Context

No response

Your environment

Google Chrome 127.0.6533.120

System:
OS: Windows 11 10.0.22631
Binaries:
Node: 20.8.1 - C:\Program Files\nodejs\node.EXE
npm: 10.1.0 - C:\Program Files\nodejs\npm.CMD
pnpm: Not Found
Browsers:
Chrome: Not Found
Edge: Chromium (126.0.2592.87)
npmPackages:
@emotion/react: ^11.11.3 => 11.11.4
@emotion/styled: ^11.11.0 => 11.11.5
@mui/base: 5.0.0-beta.40
@mui/core-downloads-tracker: 5.16.7
@mui/icons-material: ^5.15.6 => 5.15.15
@mui/joy: ^5.0.0-beta.25 => 5.0.0-beta.32
@mui/material: ^5.15.6 => 5.16.7
@mui/private-theming: 5.16.6
@mui/styled-engine: 5.16.6
@mui/system: 5.16.7
@mui/types: 7.2.15
@mui/utils: 5.16.6
@mui/x-date-pickers: ^7.11.0 => 7.17.0
@mui/x-internals: 7.17.0
@types/react: ^18.2.43 => 18.2.79
react: ^18.2.0 => 18.2.0
react-dom: ^18.2.0 => 18.2.0

Search keywords: aria-hidden

Search keywords:

@sharifmacky sharifmacky added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 16, 2024
@zannager zannager transferred this issue from mui/material-ui Sep 16, 2024
@zannager zannager added the component: pickers This is the name of the generic UI component, not the React module! label Sep 16, 2024
@michelengelen michelengelen changed the title Error in console using mobile-date-picker [pickers] Error in console using MobileDatePicker Sep 16, 2024
@michelengelen michelengelen added bug 🐛 Something doesn't work mobile Targets mobile platform component: date picker This is the name of the generic UI component, not the React module! component: date time picker This is the name of the generic UI component, not the React module! labels Sep 16, 2024
@michelengelen
Copy link
Member

@sharifmacky just to let you know... we are looking into this atm

@michelengelen
Copy link
Member

So apparently this only happens if you switch from desktop mode to mobile device mode and perform the exact actions like stated above. Since it is impossible for this scenario to show on devices other than to simulate it I doubt that this will ever pose to be a problem in a real world application.

@LukasTy how should we proceed here? We could add the waiting for upvotes label, or should we keep it opened on the board to not loose it?

@sharifmacky
Copy link
Author

Actually, on my app this happened consistently on first load and didn't require switching from desktop to mobile. However, I can't seem to reproduce the issue anymore. I'm guessing since moving to chrome 129. Although strange it still happens following the above steps and does suggest you could have an underlying issue? Feel free to close this and I can reopen if I find a new use case.

@michelengelen
Copy link
Member

Thanks for the information @sharifmacky ... As suggested I'll close this for now. 🙇🏼

@michelengelen michelengelen closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2024
@michelengelen michelengelen removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 7, 2024
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: date picker This is the name of the generic UI component, not the React module! component: date time 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! mobile Targets mobile platform
Projects
None yet
Development

No branches or pull requests

3 participants