From dcb90e098227d1df46707ffe8838d0c41b4af6d3 Mon Sep 17 00:00:00 2001 From: AmeyGohil Date: Sun, 27 Mar 2022 10:23:31 +0530 Subject: [PATCH] Disable right click on grid --- src/components/Grid/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Grid/index.js b/src/components/Grid/index.js index 11cd724..7aeaf6a 100644 --- a/src/components/Grid/index.js +++ b/src/components/Grid/index.js @@ -237,6 +237,8 @@ const Grid = ({ check, readOnly && "readOnly", ])} + // disabling right click on grid + onContextMenu={(e) => e.preventDefault()} > {Array(nHorLine - 1) .fill(0)