-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: getIsSomeRowsSelected on all selection #5499
base: main
Are you sure you want to change the base?
fix: getIsSomeRowsSelected on all selection #5499
Conversation
924383b
to
1d9e4e7
Compare
Is it possible to get this merged? The documentation already states that this is how the row selection check should work! |
@@ -436,7 +436,7 @@ export const RowSelection: TableFeature = { | |||
).length | |||
return ( | |||
totalSelected > 0 && | |||
totalSelected < table.getFilteredRowModel().flatRows.length | |||
totalSelected <= table.getFilteredRowModel().flatRows.length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the correct fix. We should just get rid of all the logic that returns false if all rows are selected.
To truly fix this I think some breaking changes might be needed. I'm going to point this PR to the alpha branch probably |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit a0f1cc3. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
Selecting all rows and run
getIsSomeRowsSelected
, it returnfalse
instead oftrue
.