From 599636d56b61a9756b841a871946dc449fa0ea2e Mon Sep 17 00:00:00 2001 From: james-ha-bruno Date: Tue, 9 Dec 2025 01:47:10 -0500 Subject: [PATCH] update for duplicative entry (#6356) --- packages/bruno-app/src/components/Modal/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/Modal/index.js b/packages/bruno-app/src/components/Modal/index.js index 35828b30e..74b9ad3cd 100644 --- a/packages/bruno-app/src/components/Modal/index.js +++ b/packages/bruno-app/src/components/Modal/index.js @@ -88,7 +88,9 @@ const Modal = ({ return closeModal({ type: 'esc' }); } case ENTER_KEY_CODE: { - if (!shiftKey && !ctrlKey && !altKey && !metaKey && handleConfirm) { + // Skip if a submit button is focused - let native button click handle it to avoid double-fire + const isSubmitButton = event.target?.type === 'submit'; + if (!shiftKey && !ctrlKey && !altKey && !metaKey && handleConfirm && !isSubmitButton) { return handleConfirm(); } }