@@ -1304,7 +1304,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
13041304 //If the grid is empty, we will return text
13051305 const isFirst = col === rowMarkerOffset ;
13061306
1307- const maybeFirstColumnHint = isFirst ? trailingRowOptions ?. hint ?? "" : "" ;
1307+ const maybeFirstColumnHint = isFirst ? ( trailingRowOptions ?. hint ?? "" ) : "" ;
13081308 const c = mangledColsRef . current [ col ] ;
13091309
13101310 if ( c ?. trailingRowOptions ?. disabled === true ) {
@@ -1550,7 +1550,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
15501550 frozenLeftWidth += columns [ i ] . width ;
15511551 }
15521552 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 -- ) {
15541554 frozenRightWidth += columns [ i ] . width ;
15551555 }
15561556 let trailingRowHeight = 0 ;
@@ -3485,7 +3485,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
34853485 formatted ?: string | string [ ]
34863486 ) : EditListItem | undefined {
34873487 const stringifiedRawValue =
3488- typeof rawValue === "object" ? rawValue ?. join ( "\n" ) ?? "" : rawValue ?. toString ( ) ?? "" ;
3488+ typeof rawValue === "object" ? ( rawValue ?. join ( "\n" ) ?? "" ) : ( rawValue ?. toString ( ) ?? "" ) ;
34893489
34903490 if ( ! isInnerOnlyCell ( inner ) && isReadWriteCell ( inner ) && inner . readonly !== true ) {
34913491 const coerced = coercePasteValue ?.( stringifiedRawValue , inner ) ;
@@ -3863,7 +3863,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
38633863 ( col : number ) => {
38643864 return typeof verticalBorder === "boolean"
38653865 ? verticalBorder
3866- : verticalBorder ?.( col - rowMarkerOffset ) ?? true ;
3866+ : ( verticalBorder ?.( col - rowMarkerOffset ) ?? true ) ;
38673867 } ,
38683868 [ rowMarkerOffset , verticalBorder ]
38693869 ) ;
0 commit comments