mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
improve closing behavior
This commit is contained in:
parent
7fcd5d0c8c
commit
fda54b2f25
@ -65,11 +65,13 @@ class Modal extends React.Component {
|
||||
["active"]: this.state.visible
|
||||
}
|
||||
)}
|
||||
onClick={this.handleClickOutside}
|
||||
onTouchEnd={this.handleClickOutside}
|
||||
onMouseDown={this.handleClickOutside}
|
||||
>
|
||||
<div
|
||||
className="app_modal_content"
|
||||
onClick={this.handleClickOutside}
|
||||
onTouchEnd={this.handleClickOutside}
|
||||
onMouseDown={this.handleClickOutside}
|
||||
>
|
||||
{
|
||||
React.cloneElement(this.props.children, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user