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 bug #1041 #1217 #1361

Open
wants to merge 4 commits into
base: v3
Choose a base branch
from

Conversation

YongThePsibor
Copy link
Contributor

As in bug #1041 and #1217 described. When filtered, we cannot just use draggingRow?.index for rangeExtractor, we should find the correct dragging row index in filtered rows.

Copy link

vercel bot commented Jan 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
material-react-table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 18, 2025 1:04pm
material-react-table-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 18, 2025 1:04pm

@YongThePsibor
Copy link
Contributor Author

anybody help with the github actions. It says:

Error: The process '/usr/bin/git' failed with exit code 1

@YongThePsibor YongThePsibor marked this pull request as draft January 18, 2025 12:56
const draggingRowIndex = useMemo(
() =>
draggingRow?.id
? realRows.findIndex((r) => r.id === draggingRow?.id)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally think there should not use useMemo, because the draggingRowIndex depends on realRows, and the realRows is changing by every render.

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.

1 participant