mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-18 12:20:15 +08:00
fix: safari compatibility (#255)
This commit is contained in:
@@ -25,6 +25,10 @@ function ConfirmButton({ onConfirm, text }) {
|
||||
style={{
|
||||
...(waitConfirm ? {} : { display: 'none' }),
|
||||
}}
|
||||
onMouseDown={(e) => {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
}}
|
||||
onBlur={() => {
|
||||
setWaitConfirm(false)
|
||||
}}
|
||||
|
||||
@@ -28,6 +28,10 @@ function DeleteButton({ onConfirm, size, text }) {
|
||||
fontSize: '10px',
|
||||
...(waitConfirm ? {} : { display: 'none' }),
|
||||
}}
|
||||
onMouseDown={(e) => {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
}}
|
||||
onBlur={() => {
|
||||
setWaitConfirm(false)
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user