Skip to content

Commit

Permalink
[v4] [core] deprecate ContextMenu.show() (#5156)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Mar 3, 2022
1 parent 055dc3f commit f95e338
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/components/context-menu/contextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ let contextMenu: ContextMenu | undefined;
* Show the given menu element at the given offset from the top-left corner of the viewport.
* The menu will appear below-right of this point and will flip to below-left if there is not enough
* room onscreen. The optional callback will be invoked when this menu closes.
*
* @deprecated use ContextMenu2
*/
export function show(menu: JSX.Element, offset: IOffset, onClose?: () => void, isDarkTheme?: boolean) {
if (contextMenuElement === undefined) {
Expand Down

1 comment on commit f95e338

@blueprint-bot
Copy link

Choose a reason for hiding this comment

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

[v4] [core] deprecate ContextMenu.show() (#5156)

Previews: documentation | landing | table | modern colors demo

Please sign in to comment.