Skip to content

Commit

Permalink
Merge pull request #344 from quadratichq/fix-context-menu-bug
Browse files Browse the repository at this point in the history
fix - allowing use of right click context menu
  • Loading branch information
jimniels authored Mar 9, 2023
2 parents 51dd41a + 53d5ee4 commit ff57355
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gridGL/QuadraticGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,14 @@ export default function QuadraticGrid(props: IProps) {
}
}}
onMouseDown={() => {
// <FloatingFormatMenu> prevents events from bubbling up to here, so
onMouseDown();
}}
onClick={() => {
// <FloatingContextMenu> prevents events from bubbling up to here, so
// we always hide the context menu if it's open
if (showContextMenu) {
setShowContextMenu(false);
}
onMouseDown();
}}
onKeyDown={(e) => {
onKeyDown(e);
Expand Down

0 comments on commit ff57355

Please sign in to comment.