@@ -1433,11 +1433,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
1433
1433
) ;
1434
1434
1435
1435
const reselect = React . useCallback (
1436
- (
1437
- bounds : Rectangle ,
1438
- activation : CellActivatedEventArgs ,
1439
- initialValue ?: string
1440
- ) => {
1436
+ ( bounds : Rectangle , activation : CellActivatedEventArgs , initialValue ?: string ) => {
1441
1437
if ( gridSelection . current === undefined ) return ;
1442
1438
1443
1439
const [ col , row ] = gridSelection . current . cell ;
@@ -1474,11 +1470,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
1474
1470
forceEditMode : initialValue !== undefined ,
1475
1471
activation,
1476
1472
} ) ;
1477
- } else if (
1478
- c . kind === GridCellKind . Boolean &&
1479
- activation . inputType === "keyboard" &&
1480
- c . readonly !== true
1481
- ) {
1473
+ } else if ( c . kind === GridCellKind . Boolean && activation . inputType === "keyboard" && c . readonly !== true ) {
1482
1474
mangledOnCellsEdited ( [
1483
1475
{
1484
1476
location : gridSelection . current . cell ,
@@ -2070,6 +2062,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
2070
2062
mapper ,
2071
2063
lastRowSticky ,
2072
2064
setCurrent ,
2065
+ headerRowMarkerDisabled ,
2073
2066
setSelectedColumns ,
2074
2067
setGridSelection ,
2075
2068
onSelectionCleared ,
@@ -2399,14 +2392,16 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
2399
2392
}
2400
2393
}
2401
2394
if ( shouldActivate ) {
2402
- const act = a . isDoubleClick ? "double-click" : ( c . activationBehaviorOverride ?? cellActivationBehavior ) ;
2403
- const activationEvent : CellActivatedEventArgs = {
2404
- inputType : "pointer" ,
2405
- pointerActivation : act ,
2406
- pointerType : a . isTouch ? "touch" : "mouse" ,
2407
- } ;
2408
- onCellActivated ?.( [ col - rowMarkerOffset , row ] , activationEvent ) ;
2409
- reselect ( a . bounds , activationEvent ) ;
2395
+ const act = a . isDoubleClick === true
2396
+ ? "double-click"
2397
+ : ( c . activationBehaviorOverride ?? cellActivationBehavior ) ;
2398
+ const activationEvent : CellActivatedEventArgs = {
2399
+ inputType : "pointer" ,
2400
+ pointerActivation : act ,
2401
+ pointerType : a . isTouch ? "touch" : "mouse" ,
2402
+ } ;
2403
+ onCellActivated ?.( [ col - rowMarkerOffset , row ] , activationEvent ) ;
2404
+ reselect ( a . bounds , activationEvent ) ;
2410
2405
return true ;
2411
2406
}
2412
2407
}
@@ -3569,7 +3564,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
3569
3564
formatted ?: string | string [ ]
3570
3565
) : EditListItem | undefined {
3571
3566
const stringifiedRawValue =
3572
- typeof rawValue === "object" ? rawValue ?. join ( "\n" ) ?? "" : rawValue ?. toString ( ) ?? "" ;
3567
+ typeof rawValue === "object" ? ( rawValue ?. join ( "\n" ) ?? "" ) : ( rawValue ?. toString ( ) ?? "" ) ;
3573
3568
3574
3569
if ( ! isInnerOnlyCell ( inner ) && isReadWriteCell ( inner ) && inner . readonly !== true ) {
3575
3570
const coerced = coercePasteValue ?.( stringifiedRawValue , inner ) ;
0 commit comments