File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
packages/core/src/data-grid Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ export function useSelectionBehavior(
68
68
const setSelectedRows = React . useCallback (
69
69
( newRows : CompactSelection | undefined , append : Slice | number | undefined , allowMixed : boolean ) : void => {
70
70
newRows = newRows ?? gridSelection . rows ;
71
- allowMixed = allowMixed || gridSelection . current === undefined ;
72
71
if ( append !== undefined ) {
73
72
newRows = newRows . add ( append ) ;
74
73
}
@@ -97,7 +96,6 @@ export function useSelectionBehavior(
97
96
const setSelectedColumns = React . useCallback (
98
97
( newCols : CompactSelection | undefined , append : number | Slice | undefined , allowMixed : boolean ) : void => {
99
98
newCols = newCols ?? gridSelection . columns ;
100
- allowMixed = allowMixed || gridSelection . current === undefined ;
101
99
if ( append !== undefined ) {
102
100
newCols = newCols . add ( append ) ;
103
101
}
You can’t perform that action at this time.
0 commit comments