Skip to content

Commit 696cc2d

Browse files
authored
fix: Context menu does not appear when right-clicking IrisGrid component in styleguide (#1184)
Fixes #1065 Context menu was being rendered but it was rendered based on the page x and y, so since you have to scroll to the bottom to see IrisGrid, the context menu was being rendered off the screen.
1 parent 15551df commit 696cc2d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/iris-grid/src/mousehandlers/IrisGridContextMenuHandler.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,8 @@ class IrisGridContextMenuHandler extends GridMouseHandler {
797797

798798
ContextActions.triggerMenu(
799799
irisGrid.gridWrapper,
800-
event.pageX,
801-
event.pageY,
800+
event.clientX,
801+
event.clientY,
802802
actions
803803
);
804804
return true;

0 commit comments

Comments
 (0)