Skip to content

Commit 4a3743a

Browse files
authored
fix(DetailsList): DetailsRow correctly falls back to horizontal FocusZone (microsoft#35180)
1 parent 551b944 commit 4a3743a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix(DetailsList): DetailsRow correctly falls back to horizontal FocusZone",
4+
"packageName": "@fluentui/react",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/react/src/components/DetailsList/DetailsRow.base.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export class DetailsRowBase extends React.Component<IDetailsRowBaseProps, IDetai
226226
const ariaSelected = selectionMode === SelectionMode.none ? undefined : isSelected;
227227
const ariaPositionInSet = group ? itemIndex - group.startIndex + 1 : undefined;
228228
const ariaSetSize = group ? group.count : undefined;
229-
const focusZoneDirection = focusZoneProps ? focusZoneProps.direction : FocusZoneDirection.horizontal;
229+
const focusZoneDirection = focusZoneProps?.direction ?? FocusZoneDirection.horizontal;
230230

231231
this._classNames = {
232232
...this._classNames,

0 commit comments

Comments
 (0)