From f296c00a1c094570683d1813a1fa07d071197a2d Mon Sep 17 00:00:00 2001 From: vaidankarswapnil <81285216+vaidankarswapnil@users.noreply.github.com> Date: Mon, 7 Jun 2021 21:08:13 +0530 Subject: [PATCH] Fixed graph style panel close issue (#858) --- src/Explorer/Panes/GraphStylingPanel/GraphStylingPanel.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Explorer/Panes/GraphStylingPanel/GraphStylingPanel.tsx b/src/Explorer/Panes/GraphStylingPanel/GraphStylingPanel.tsx index 9fc520693..e5835e731 100644 --- a/src/Explorer/Panes/GraphStylingPanel/GraphStylingPanel.tsx +++ b/src/Explorer/Panes/GraphStylingPanel/GraphStylingPanel.tsx @@ -19,7 +19,8 @@ export const GraphStylingPanel: FunctionComponent = ({ const buttonLabel = "Ok"; - const submit = () => { + const submit = (event: React.FormEvent) => { + event.preventDefault(); closeSidePanel(); };