@@ -1321,7 +1321,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
13211321 //If the grid is empty, we will return text
13221322 const isFirst = col === rowMarkerOffset ;
13231323
1324- const maybeFirstColumnHint = isFirst ? trailingRowOptions ?. hint ?? "" : "" ;
1324+ const maybeFirstColumnHint = isFirst ? ( trailingRowOptions ?. hint ?? "" ) : "" ;
13251325 const c = mangledColsRef . current [ col ] ;
13261326
13271327 if ( c ?. trailingRowOptions ?. disabled === true ) {
@@ -1567,7 +1567,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
15671567 frozenLeftWidth += columns [ i ] . width ;
15681568 }
15691569 let frozenRightWidth = 0 ;
1570- for ( let i = mangledCols . length - 1 ; i >= mangledCols . length - freezeRightColumns ; i -- ) {
1570+ for ( let i = columns . length - 1 ; i >= columns . length - 1 - freezeRightColumns ; i -- ) {
15711571 frozenRightWidth += columns [ i ] . width ;
15721572 }
15731573 let trailingRowHeight = 0 ;
@@ -3579,7 +3579,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
35793579 formatted ?: string | string [ ]
35803580 ) : EditListItem | undefined {
35813581 const stringifiedRawValue =
3582- typeof rawValue === "object" ? rawValue ?. join ( "\n" ) ?? "" : rawValue ?. toString ( ) ?? "" ;
3582+ typeof rawValue === "object" ? ( rawValue ?. join ( "\n" ) ?? "" ) : ( rawValue ?. toString ( ) ?? "" ) ;
35833583
35843584 if ( ! isInnerOnlyCell ( inner ) && isReadWriteCell ( inner ) && inner . readonly !== true ) {
35853585 const coerced = coercePasteValue ?.( stringifiedRawValue , inner ) ;
@@ -3957,7 +3957,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
39573957 ( col : number ) => {
39583958 return typeof verticalBorder === "boolean"
39593959 ? verticalBorder
3960- : verticalBorder ?.( col - rowMarkerOffset ) ?? true ;
3960+ : ( verticalBorder ?.( col - rowMarkerOffset ) ?? true ) ;
39613961 } ,
39623962 [ rowMarkerOffset , verticalBorder ]
39633963 ) ;
0 commit comments