-
-
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
[data grid] Pinned columns are broken in RTL mode (re-opening) #14953
Comments
Can you provide a reproduction example? Screen.Recording.2024-10-14.at.13.53.31.mov |
The bug appears after installing DataGrid without any remnants of previous versions dir = "rtl
|
Can't reproduce: https://stackblitz.com/edit/react-fh2m51 |
It seems like we’re working in different environments. I’m using Vite, and I noticed something interesting: when I install DataGrid version 6.19 and then upgrade to 7.20, everything works fine. However, if I delete the node_modules and package-lock.json and reinstall, it stops working. This suggests that there might be a dependency issue or something else specific to the environment that breaks during a clean install. |
It seems like we’re working in different environments. I’m using Vite, and I noticed something interesting: when I install DataGrid version 6.19 and then upgrade to 7.20, everything works fine. However, if I delete the node_modules and package-lock.json and reinstall, it stops working. This suggests that there might be a dependency issue or something else specific to the environment that breaks during a clean install. I also want to mention that I ran this test with the code provided by your team. I believe that if this bug is not addressed, users who install only version 7.20 directly may encounter this issue. I kindly request your feedback on this matter. |
@ranpaz Could you provide a live reproduction test case (codesandbox/stackblitz or a git repo) since we have no luck reproducing the issue, even after following the mentioned steps. We could unfortunately not assist much unless the issue has been reproduced. You could follow this guide to ease the process of reproduction: https://mui.com/x/introduction/support/#bug-reproductions Thank you! |
Thank you for your response. I am unable to reproduce the bug in codeSandbox. I'm not entirely sure which versions the system there is using, but when I run the code you provided as an example "https://stackblitz.com/edit/react-fh2m51" on my local machine and follow these steps:
This suggests that anyone installing only version 7.20 without previous versions may experience these problems. Thank :) |
this is my package.json:
|
I'm still not able to reproduce it. Could you also attach your environment info in the issue description? |
System: |
I updated to @mui version 6.1.3, and the issues were resolved. Please consider adding to the documentation that upgrading to DataGrid 7 requires updating the installed version of MUI. Anyway, thanks for the help! :)" |
Do you mean the version of Just to confirm, were you able to reproduce the issue on 5.15.14 or higher? Sidenote: |
Yes, I am referring to @mui/material. As for reproducing the bug, prior to the MUI update, my versions were (as seen in the message above): These versions are all higher than the minimum requirement of 5.15.14. |
I did not install the following libraries in my project: |
I suspect it's something to do with your local environment, could you try reproducing the issue on another machine/environment if available? Ideally, all the Data Grid features, including the bug fix done in #14586 should work with the minimal supported |
The bug was also observed when I deployed to cloud servers on AWS, as I mentioned earlier. In the AWS deploy, the code is always built from scratch, so this is not related to the settings on my machine. Additionally, as I mentioned, when I installed DataGrid version 6 and then DataGrid version 7, the system worked correctly. When I wanted to simulate the working state in AWS, I deleted the node_modules folder + package-lock.json to ensure there were no remnants from version 6, and then, as stated, the issue appeared. Have you tried installing on a local machine with the versions I sent you (the result of npx @mui/envinfo)? By the way, I’m fine with closing my request – updating the MUI version resolved the issue for me as well as in AWS. |
Thank you for providing the details around installed packages and reproduce steps. Here's the project it reproduced on after following the mentioned steps on the latest version (v7.21): https://github.com/MBilalShafi/test-mui-x-14953/ I'll keep this open as a bug to figure out the root cause. It seems to have a connection with the other dependencies, since I couldn't reproduce it on same @mui/material and @mui/x-data-grid versions in the X docs project. CC @KenanYusuf Feel free to share if you could guess a possible cause, since you fixed the original bug. |
@MBilalShafi I tried reproducing it Stackblitz with the latest version of libraries: https://stackblitz.com/edit/react-jbitvf-gwmsiv?file=index.js,Demo.js |
@cherniavskii I think it's a bit different since this one gets fixed by adding I suspect it has something to do with recent |
The issue of pinning columns in RTL mode has still not been resolved (#14586). If you install "@mui/x-data-grid-pro": "^7.20.0" cleanly, without remnants from previous versions, the problem persists. Could you please check and fix this?
Search keywords: pinned columns in RTL mode
The text was updated successfully, but these errors were encountered: