fix: safari compatibility (#255)

This commit is contained in:
josc146
2023-04-28 17:25:30 +08:00
parent 1ac545ea34
commit 3d5d7e3a21
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -25,6 +25,10 @@ function ConfirmButton({ onConfirm, text }) {
style={{
...(waitConfirm ? {} : { display: 'none' }),
}}
onMouseDown={(e) => {
e.preventDefault()
e.stopPropagation()
}}
onBlur={() => {
setWaitConfirm(false)
}}
+4
View File
@@ -28,6 +28,10 @@ function DeleteButton({ onConfirm, size, text }) {
fontSize: '10px',
...(waitConfirm ? {} : { display: 'none' }),
}}
onMouseDown={(e) => {
e.preventDefault()
e.stopPropagation()
}}
onBlur={() => {
setWaitConfirm(false)
}}