diff --git a/frontend/src/components/menu.jsx b/frontend/src/components/menu.jsx index aa839c0..5e92501 100644 --- a/frontend/src/components/menu.jsx +++ b/frontend/src/components/menu.jsx @@ -35,7 +35,8 @@ export function Menu(props) { props.onClose(); } - function handleOptionConfirmation() { + function handleOptionConfirmation(e) { + e.stopImmediatePropagation(); confirmationPromptCb()(); setConfirmationPromptCb(null); props.onClose(); @@ -80,7 +81,7 @@ export function Menu(props) { onClick={handleOptionConfirmation} id="confirm-btn" onKeyDown={(e) => - handleKeyDown(e, () => handleOptionConfirmation(), handleCancel) + handleKeyDown(e, () => handleOptionConfirmation(e), handleCancel) } > Are you sure?