@@ -411,7 +411,7 @@ export function DataGrid<R, SR = unknown, K extends Key = Key>(props: DataGridPr
411411 ) ;
412412
413413 const headerSelectionValue = useMemo ( ( ) : HeaderRowSelectionContextValue => {
414- // no rows to select = explicitely unchecked
414+ // no rows to select = explicitly unchecked
415415 let hasSelectedRow = false ;
416416 let hasUnselectedRow = false ;
417417
@@ -736,7 +736,7 @@ export function DataGrid<R, SR = unknown, K extends Key = Key>(props: DataGridPr
736736 setDraggedOverRowIdx ( overRowIdx ) ;
737737 const ariaRowIndex = headerAndTopSummaryRowsCount + overRowIdx + 1 ;
738738 const el = gridEl . querySelector (
739- `:scope > [aria-rowindex="${ ariaRowIndex } "] > [aria-colindex="${ activePosition . idx + 1 } "]`
739+ `& > [aria-rowindex="${ ariaRowIndex } "] > [aria-colindex="${ activePosition . idx + 1 } "]`
740740 ) ;
741741 scrollIntoView ( el ) ;
742742 }
@@ -1293,11 +1293,11 @@ export function DataGrid<R, SR = unknown, K extends Key = Key>(props: DataGridPr
12931293}
12941294
12951295function getRowToScroll ( gridEl : HTMLDivElement ) {
1296- return gridEl . querySelector < HTMLDivElement > ( ':scope > [role="row"][tabindex="0"]' ) ;
1296+ return gridEl . querySelector < HTMLDivElement > ( '& > [role="row"][tabindex="0"]' ) ;
12971297}
12981298
12991299function getCellToScroll ( gridEl : HTMLDivElement ) {
1300- return gridEl . querySelector < HTMLDivElement > ( ':scope > [role="row"] > [tabindex="0"]' ) ;
1300+ return gridEl . querySelector < HTMLDivElement > ( '& > [role="row"] > [tabindex="0"]' ) ;
13011301}
13021302
13031303function isSamePosition ( p1 : Position , p2 : Position ) {
0 commit comments