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

fix: pass canSeeReorderButtons as a property from the table to the header and row to fix header misalignment #207

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shawnheide
Copy link

Pretty sure this fixes #164. It seems that the ResourceTableHeader and ResourceTableRow couldn't actually see the resource which was referenced in the ReordersResources mixin (maybe just when it was a belongsTo/hasMany relationship). I changed the components to receive the canSeeReorderButtons property from the ResourceTable context.

This seems to have fixed the issue for me and I couldn't find another place that the ReordersResources mixin was used so I removed the import in the header and row components. Let me know if you find any side effects or issues with this.

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

Successfully merging this pull request may close these issues.

Break layout without checkbox
1 participant