@@ -1304,7 +1304,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
1304
1304
//If the grid is empty, we will return text
1305
1305
const isFirst = col === rowMarkerOffset ;
1306
1306
1307
- const maybeFirstColumnHint = isFirst ? trailingRowOptions ?. hint ?? "" : "" ;
1307
+ const maybeFirstColumnHint = isFirst ? ( trailingRowOptions ?. hint ?? "" ) : "" ;
1308
1308
const c = mangledColsRef . current [ col ] ;
1309
1309
1310
1310
if ( c ?. trailingRowOptions ?. disabled === true ) {
@@ -1550,7 +1550,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
1550
1550
frozenLeftWidth += columns [ i ] . width ;
1551
1551
}
1552
1552
let frozenRightWidth = 0 ;
1553
- for ( let i = mangledCols . length - 1 ; i >= mangledCols . length - freezeRightColumns ; i -- ) {
1553
+ for ( let i = columns . length - 1 ; i >= columns . length - 1 - freezeRightColumns ; i -- ) {
1554
1554
frozenRightWidth += columns [ i ] . width ;
1555
1555
}
1556
1556
let trailingRowHeight = 0 ;
@@ -3485,7 +3485,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
3485
3485
formatted ?: string | string [ ]
3486
3486
) : EditListItem | undefined {
3487
3487
const stringifiedRawValue =
3488
- typeof rawValue === "object" ? rawValue ?. join ( "\n" ) ?? "" : rawValue ?. toString ( ) ?? "" ;
3488
+ typeof rawValue === "object" ? ( rawValue ?. join ( "\n" ) ?? "" ) : ( rawValue ?. toString ( ) ?? "" ) ;
3489
3489
3490
3490
if ( ! isInnerOnlyCell ( inner ) && isReadWriteCell ( inner ) && inner . readonly !== true ) {
3491
3491
const coerced = coercePasteValue ?.( stringifiedRawValue , inner ) ;
@@ -3863,7 +3863,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
3863
3863
( col : number ) => {
3864
3864
return typeof verticalBorder === "boolean"
3865
3865
? verticalBorder
3866
- : verticalBorder ?.( col - rowMarkerOffset ) ?? true ;
3866
+ : ( verticalBorder ?.( col - rowMarkerOffset ) ?? true ) ;
3867
3867
} ,
3868
3868
[ rowMarkerOffset , verticalBorder ]
3869
3869
) ;
0 commit comments