-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[question] [DataGridPro]About Sorting on iPad #8762
Comments
@mui/xgrid Could someone test the DataGrid on the iOS simulator or on a real device? With the DevTools only one tap is enough to trigger the sorting. |
I can reproduce this on iOS simulator: Screen.Recording.2023-04-28.at.10.21.47.mov |
Apparently, this is how iOS handles the elements with |
Similar issue was reported for the Autocomplete component in mui/material-ui#21049 |
I'm not sure there's an easy fix here. To make sorting work on the first click, we have to get rid of hover styles on mobile, therefore it will be impossible to open the column menu (column menu icon is only showed on hover) |
@cherniavskii @m4theushw |
@e12879 We do not have plans for a fix yet, as it's unclear how to make the column menu work without hover. cc @gerdadesign Maybe we can reconsider how column headers work on touch devices? E.g. show them in "hovered" state by default, so that you always see the icons in the column headers, as well as resize handles? |
An alternative I sometimes see on mobile is to use a long press to replace the hover trigger. |
This makes sense to me because:
|
+1 for showing on mobile what is typically reserved for hover on desktop. |
Order ID or Support key 💳 (optional)
58043
Duplicates
Latest version
The problem in depth 🔍
I am using mui/x-data-grid-pro.
Please tell me about the sort function of DataGridPro on iPad (Safari).
Android tablet (Google Chrome) sorts with 1Tap.
On the other hand, iPad sorts with 2Tap. Is this the specification?
If possible, I would like to sort with 1Tap even on iPad (Safari). Is there a way?
supplementary explanation:
Column headers only have sort functionality.
Your environment 🌎
My environment is as follows.
■npx @mui/envinfo
System:
OS: Windows 10 10.0.19044
Binaries:
Node: 14.21.3 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.14.18 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: Not Found
Edge: Spartan (44.19041.1266.0), Chromium (112.0.1722.48)
■Actual machine environment in use
Ipad 6 iOS:15.7.1
iPad Pro iOS:16.3.1
Galaxy Tab A8:Android11
The text was updated successfully, but these errors were encountered: