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

selection checkbox column gets cropped when initialState is defined #400

Open
1 task done
siff-qa opened this issue Aug 21, 2024 · 3 comments
Open
1 task done

selection checkbox column gets cropped when initialState is defined #400

siff-qa opened this issue Aug 21, 2024 · 3 comments
Labels
bug Something isn't working V2 Issue with MRT V2

Comments

@siff-qa
Copy link

siff-qa commented Aug 21, 2024

mantine-react-table version

2.0.0-beta.5

react & react-dom versions

18.3.1

Describe the bug and the steps to reproduce it

When initialState is included (even if empty {} ), the selection column checkbox gets slightly cropped (see screenshot)

No initialState: {}

image

Included initialState: {}

image

Minimal, Reproducible Example - (Optional, but Recommended)

none

Screenshots or Videos (Optional)

No response

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

No, because I do not have time to dig into it

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.
@alessandrojcm
Copy link
Collaborator

Hi, please confirm this is still an issue with the latest beta

@alessandrojcm alessandrojcm added bug Something isn't working V2 Issue with MRT V2 labels Nov 4, 2024
@siff-duke
Copy link

yep - still happening with beta 7.

but my workaround is fine instead of

initialState: {
  columnVisibility: {
    "ID": false,
  }
},

@siff-qa
Copy link
Author

siff-qa commented Nov 6, 2024

I explicitly call setColumnVisibility() afterwards in the workaround.

I notice the mantineSelectCheckboxProps.size was set (sm). Not sure if that is related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working V2 Issue with MRT V2
Projects
None yet
Development

No branches or pull requests

3 participants