Skip to content

Commit 0e9c438

Browse files
authored
bugfix: selector slot required when selection mode is defined (#28648)
1 parent dab84e1 commit 0e9c438

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "bugfix: makes selector slot required when selection mode is defined",
4+
"packageName": "@fluentui/react-tree",
5+
"email": "[email protected]",
6+
"dependentChangeType": "patch"
7+
}

packages/react-components/react-tree/src/components/TreeItemLayout/useTreeItemLayout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export const useTreeItemLayout_unstable = (
8080
actions,
8181
expandIcon,
8282
selector: resolveShorthand(props.selector, {
83+
required: selectionMode !== 'none',
8384
defaultProps: {
8485
checked,
8586
tabIndex: -1,

0 commit comments

Comments
 (0)