Skip to content

Commit

Permalink
Prevent group toggling from selecting the whole group (#24822)
Browse files Browse the repository at this point in the history
* Ensure toggling group state does not select it

* Update changelogs

* Update snapshots
  • Loading branch information
ThomasMichon authored Sep 15, 2022
1 parent 151520d commit 9077e0a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Ensure toggling group state does not select it",
"packageName": "@fluentui/react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7951,6 +7951,7 @@ exports[`DetailsList renders List with hidden checkboxes correctly 1`] = `
background-color: #e1dfdd;
}
data-is-focusable={false}
data-selection-disabled={true}
onClick={[Function]}
type="button"
>
Expand Down Expand Up @@ -8812,6 +8813,7 @@ exports[`DetailsList renders List with hidden checkboxes correctly 1`] = `
background-color: #e1dfdd;
}
data-is-focusable={false}
data-selection-disabled={true}
onClick={[Function]}
type="button"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export class GroupHeaderBase extends React.Component<IGroupHeaderProps, IGroupHe
<div role="gridcell">
<button
data-is-focusable={false}
data-selection-disabled={true}
type="button"
className={this._classNames.expand}
onClick={this._onToggleClick}
Expand Down

0 comments on commit 9077e0a

Please sign in to comment.