Skip to content

Commit

Permalink
fix: fix example with expanded state
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaevAlexandr committed Nov 29, 2023
1 parent cd03594 commit 65e9bf6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const WithGroupSelectionControlledStateAndCustomIconsExample: StoryFn<
onClick={(e) => {
e.stopPropagation();
setExpanded((prevExpandedState) => ({
...prevExpandedState,
// by default all groups expanded
[id]: id in prevExpandedState ? !prevExpandedState[id] : false,
}));
Expand Down

0 comments on commit 65e9bf6

Please sign in to comment.