@@ -1321,7 +1321,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
1321
1321
//If the grid is empty, we will return text
1322
1322
const isFirst = col === rowMarkerOffset ;
1323
1323
1324
- const maybeFirstColumnHint = isFirst ? trailingRowOptions ?. hint ?? "" : "" ;
1324
+ const maybeFirstColumnHint = isFirst ? ( trailingRowOptions ?. hint ?? "" ) : "" ;
1325
1325
const c = mangledColsRef . current [ col ] ;
1326
1326
1327
1327
if ( c ?. trailingRowOptions ?. disabled === true ) {
@@ -1567,7 +1567,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
1567
1567
frozenLeftWidth += columns [ i ] . width ;
1568
1568
}
1569
1569
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 -- ) {
1571
1571
frozenRightWidth += columns [ i ] . width ;
1572
1572
}
1573
1573
let trailingRowHeight = 0 ;
@@ -3579,7 +3579,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
3579
3579
formatted ?: string | string [ ]
3580
3580
) : EditListItem | undefined {
3581
3581
const stringifiedRawValue =
3582
- typeof rawValue === "object" ? rawValue ?. join ( "\n" ) ?? "" : rawValue ?. toString ( ) ?? "" ;
3582
+ typeof rawValue === "object" ? ( rawValue ?. join ( "\n" ) ?? "" ) : ( rawValue ?. toString ( ) ?? "" ) ;
3583
3583
3584
3584
if ( ! isInnerOnlyCell ( inner ) && isReadWriteCell ( inner ) && inner . readonly !== true ) {
3585
3585
const coerced = coercePasteValue ?.( stringifiedRawValue , inner ) ;
@@ -3957,7 +3957,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
3957
3957
( col : number ) => {
3958
3958
return typeof verticalBorder === "boolean"
3959
3959
? verticalBorder
3960
- : verticalBorder ?.( col - rowMarkerOffset ) ?? true ;
3960
+ : ( verticalBorder ?.( col - rowMarkerOffset ) ?? true ) ;
3961
3961
} ,
3962
3962
[ rowMarkerOffset , verticalBorder ]
3963
3963
) ;
0 commit comments