We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c404f7d commit 87b2cc8Copy full SHA for 87b2cc8
packages/material-react-table/src/utils/row.utils.ts
@@ -184,8 +184,12 @@ export const getMRT_RowSelectionHandler =
184
lastIndex < currentIndex
185
? [lastIndex, currentIndex]
186
: [currentIndex, lastIndex];
187
- for (let i = start; i <= end; i++) {
188
- rows[i].toggleSelected(!isChecked);
+ if (
+ rows[currentIndex].getIsSelected() !== rows[lastIndex].getIsSelected()
189
+ ) {
190
+ for (let i = start; i <= end; i++) {
191
+ rows[i].toggleSelected(!isChecked);
192
+ }
193
}
194
195
0 commit comments