Skip to content

Commit 3d5d7e3

Browse files
committed
fix: safari compatibility (#255)
1 parent 1ac545e commit 3d5d7e3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/components/ConfirmButton/index.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ function ConfirmButton({ onConfirm, text }) {
2525
style={{
2626
...(waitConfirm ? {} : { display: 'none' }),
2727
}}
28+
onMouseDown={(e) => {
29+
e.preventDefault()
30+
e.stopPropagation()
31+
}}
2832
onBlur={() => {
2933
setWaitConfirm(false)
3034
}}

src/components/DeleteButton/index.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ function DeleteButton({ onConfirm, size, text }) {
2828
fontSize: '10px',
2929
...(waitConfirm ? {} : { display: 'none' }),
3030
}}
31+
onMouseDown={(e) => {
32+
e.preventDefault()
33+
e.stopPropagation()
34+
}}
3135
onBlur={() => {
3236
setWaitConfirm(false)
3337
}}

0 commit comments

Comments
 (0)