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
59e489565d
commit
79dee5c16a
@ -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