Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react/src/components/SideMenu/SideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const SideMenu = (props: SideMenuProps & { children?: ReactNode }) => {
{props.children || (
<>
<AddBlockButton />
<DragHandleButton />
<DragHandleButton dragHandleMenu={props.dragHandleMenu} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matthewlipski I see you made a comment here about this which may be related?

// TODO: props.dragHandleMenu should only be available if no children are passed

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this comment is just about a minor typing issue. Ideally, if you pass children to the SideMenu component, you shouldn't be able to pass dragHandleMenu as it won't do anything. But the change in this PR is good, fixes a regression from #2143.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, cool thanks for confirming

</>
)}
</Components.SideMenu.Root>
Expand Down
Loading