@@ -1303,7 +1303,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
13031303 //If the grid is empty, we will return text
13041304 const isFirst = col === rowMarkerOffset ;
13051305
1306- const maybeFirstColumnHint = isFirst ? trailingRowOptions ?. hint ?? "" : "" ;
1306+ const maybeFirstColumnHint = isFirst ? ( trailingRowOptions ?. hint ?? "" ) : "" ;
13071307 const c = mangledColsRef . current [ col ] ;
13081308
13091309 if ( c ?. trailingRowOptions ?. disabled === true ) {
@@ -1549,7 +1549,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
15491549 frozenLeftWidth += columns [ i ] . width ;
15501550 }
15511551 let frozenRightWidth = 0 ;
1552- for ( let i = mangledCols . length - 1 ; i >= mangledCols . length - freezeRightColumns ; i -- ) {
1552+ for ( let i = columns . length - 1 ; i >= columns . length - 1 - freezeRightColumns ; i -- ) {
15531553 frozenRightWidth += columns [ i ] . width ;
15541554 }
15551555 let trailingRowHeight = 0 ;
@@ -3479,7 +3479,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
34793479 formatted ?: string | string [ ]
34803480 ) : EditListItem | undefined {
34813481 const stringifiedRawValue =
3482- typeof rawValue === "object" ? rawValue ?. join ( "\n" ) ?? "" : rawValue ?. toString ( ) ?? "" ;
3482+ typeof rawValue === "object" ? ( rawValue ?. join ( "\n" ) ?? "" ) : ( rawValue ?. toString ( ) ?? "" ) ;
34833483
34843484 if ( ! isInnerOnlyCell ( inner ) && isReadWriteCell ( inner ) && inner . readonly !== true ) {
34853485 const coerced = coercePasteValue ?.( stringifiedRawValue , inner ) ;
@@ -3857,7 +3857,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
38573857 ( col : number ) => {
38583858 return typeof verticalBorder === "boolean"
38593859 ? verticalBorder
3860- : verticalBorder ?.( col - rowMarkerOffset ) ?? true ;
3860+ : ( verticalBorder ?.( col - rowMarkerOffset ) ?? true ) ;
38613861 } ,
38623862 [ rowMarkerOffset , verticalBorder ]
38633863 ) ;
0 commit comments