Skip to content

Commit

Permalink
bugfix: selector slot required when selection mode is defined (micros…
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus authored Jul 26, 2023
1 parent dab84e1 commit 0e9c438
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "bugfix: makes selector slot required when selection mode is defined",
"packageName": "@fluentui/react-tree",
"email": "bernardo.sunderhus@gmail.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const useTreeItemLayout_unstable = (
actions,
expandIcon,
selector: resolveShorthand(props.selector, {
required: selectionMode !== 'none',
defaultProps: {
checked,
tabIndex: -1,
Expand Down

0 comments on commit 0e9c438

Please sign in to comment.