* Fix #1217. setTimeout(0) on dialog background click. * Handle onClick instead of using setTimeout Co-authored-by: Jesús Espino <jespinog@gmail.com>
This commit is contained in:
parent
828748dd08
commit
a66fbdbc6d
|
@ -33,7 +33,7 @@ const Dialog = React.memo((props: Props) => {
|
|||
<div className={`Dialog dialog-back ${props.className}`}>
|
||||
<div
|
||||
className='wrapper'
|
||||
onMouseDown={(e) => {
|
||||
onClick={(e) => {
|
||||
if (e.target === e.currentTarget) {
|
||||
props.onClose()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user