You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-07-15 23:54:29 +02:00
* 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:
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user