From a6a2d8d4ccce806dbab3f6cb9bc67043cc846841 Mon Sep 17 00:00:00 2001 From: asivery Date: Sat, 17 Jul 2021 22:05:00 +0200 Subject: [PATCH] Fixed rename dialog retriggering after hitting enter if opened with the icon --- src/components/main.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/main.tsx b/src/components/main.tsx index e91d934..cbf6d12 100644 --- a/src/components/main.tsx +++ b/src/components/main.tsx @@ -358,6 +358,7 @@ export const Main = (props: {}) => { }; const handleRenameActionClick = (event: React.MouseEvent) => { + if(event.detail !== 1) return; //Event retriggering when hitting enter in the dialog handleRenameDoubleClick(event, selected[0]); };