Skip to content

Commit

Permalink
Fix double scrollbar within group dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
roluk committed Nov 28, 2023
1 parent 6c88e42 commit 52e8406
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,13 @@ function SavedViewsGroupScreen(props: SavedViewsGroupScreenProps): ReactElement
<IconButton onClick={() => props.setActiveGroup(undefined)}><SvgHome /></IconButton>
<DropdownButton
dropdownMenuProps={{ appendTo: "parent" }}
menuItems={(close) => [
<div key="0" style={{ overflow: "auto", height: "calc(15 * var(--iui-size-l))" }}>{
groups.map(
(group) =>
<MenuItem key={group.id} onClick={() => { close(); props.setActiveGroup(group.id); }}>
{group.displayName}
</MenuItem>,
)}
</div>,
]}
menuItems={(close) =>
groups.map((group) =>
<MenuItem key={group.id} onClick={() => { close(); props.setActiveGroup(group.id); }}>
{group.displayName}
</MenuItem>,
)
}
>
{props.activeGroup.displayName}
</DropdownButton>
Expand Down

0 comments on commit 52e8406

Please sign in to comment.