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

Sticky Pinned Columns Misplacement in Material React Table for RTL Language #1037

Open
1 task done
amirhosseinkh2515 opened this issue Mar 12, 2024 · 0 comments
Open
1 task done

Comments

@amirhosseinkh2515
Copy link

material-react-table version

v2.11.2

react & react-dom versions

v18.2.0

Describe the bug and the steps to reproduce it

When using the Material React Table package in a React project supporting both RTL and LTR languages, an issue arises with sticky pinned columns in RTL mode. The problem occurs specifically with the misplacement of the pinned columns, impacting the left and right positioning when scrolling horizontally.

Steps to Reproduce:

Set the project language to RTL.
Utilize the Material React Table package.
Pin some columns in the table.
Scroll horizontally to observe the behavior of the pinned columns.

Expected Behavior:
Sticky pinned columns should maintain proper left and right positioning when the language is set to RTL, ensuring a consistent and expected layout while scrolling horizontally.

Actual Behavior:
Sticky pinned columns exhibit misplacement issues in terms of left and right positioning when the language is switched to RTL.

Minimal, Reproducible Example - (Optional, but Recommended)

link to sandbox

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

Yes, I think I know how to fix it and will discuss it in the comments of this issue

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant