Skip to content

Commit

Permalink
[popover2] fix(ContextMenu2): allow content to be undefined (#4701)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored May 6, 2021
1 parent 9ebd96c commit 4be55ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/popover2/src/contextMenu2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ export interface ContextMenu2Props
/**
* Menu content. This will usually be a Blueprint `<Menu>` component.
* This optionally functions as a render prop so you can use component state to render content.
* This should only be `undefined` if `disabled` is also set to `true`.
*/
content: JSX.Element | ((props: ContextMenu2ContentProps) => JSX.Element);
content: JSX.Element | ((props: ContextMenu2ContentProps) => JSX.Element) | undefined;

/**
* The context menu target. This may optionally be a render function so you can use
Expand Down

1 comment on commit 4be55ee

@blueprint-bot
Copy link

Choose a reason for hiding this comment

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

[popover2] fix(ContextMenu2): allow content to be undefined (#4701)

Previews: documentation | landing | table

Please sign in to comment.