From d3d5b21c354a4046f4308a6d9cc6713814412fce Mon Sep 17 00:00:00 2001 From: Piyush Jain Date: Tue, 31 Oct 2023 10:56:33 -0700 Subject: [PATCH] Removed onMouseDown handler to avoid double submission. --- src/components/confirm-buttons.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/confirm-buttons.tsx b/src/components/confirm-buttons.tsx index 13e68418..2a72b65f 100644 --- a/src/components/confirm-buttons.tsx +++ b/src/components/confirm-buttons.tsx @@ -35,7 +35,6 @@ export function ConfirmButton(props: { color="error" title={props.name} onClick={clickHandler} - onMouseDown={clickHandler} onBlur={_ => setClicked(false)} style={{ visibility: clicked ? 'visible' : 'hidden' }} autoFocus