mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +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
|
["active"]: this.state.visible
|
||||||
}
|
}
|
||||||
)}
|
)}
|
||||||
onClick={this.handleClickOutside}
|
onTouchEnd={this.handleClickOutside}
|
||||||
|
onMouseDown={this.handleClickOutside}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="app_modal_content"
|
className="app_modal_content"
|
||||||
onClick={this.handleClickOutside}
|
onTouchEnd={this.handleClickOutside}
|
||||||
|
onMouseDown={this.handleClickOutside}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
React.cloneElement(this.props.children, {
|
React.cloneElement(this.props.children, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user