diff --git a/src/components/ConfirmButton/index.jsx b/src/components/ConfirmButton/index.jsx index 3e2acdf..2f58e09 100644 --- a/src/components/ConfirmButton/index.jsx +++ b/src/components/ConfirmButton/index.jsx @@ -25,6 +25,10 @@ function ConfirmButton({ onConfirm, text }) { style={{ ...(waitConfirm ? {} : { display: 'none' }), }} + onMouseDown={(e) => { + e.preventDefault() + e.stopPropagation() + }} onBlur={() => { setWaitConfirm(false) }} diff --git a/src/components/DeleteButton/index.jsx b/src/components/DeleteButton/index.jsx index 7f0f561..ad5f5b7 100644 --- a/src/components/DeleteButton/index.jsx +++ b/src/components/DeleteButton/index.jsx @@ -28,6 +28,10 @@ function DeleteButton({ onConfirm, size, text }) { fontSize: '10px', ...(waitConfirm ? {} : { display: 'none' }), }} + onMouseDown={(e) => { + e.preventDefault() + e.stopPropagation() + }} onBlur={() => { setWaitConfirm(false) }}