Unverified Commit 83e5278b authored by Stephen Zhou's avatar Stephen Zhou Committed by GitHub

fix: dialog close when draging from in to out (#760)

parent a8751af6
......@@ -40,8 +40,8 @@ const BaseDialog: React.FC<Props> = (props: Props) => {
};
return (
<div className={`dialog-wrapper ${className}`} onClick={handleSpaceClicked}>
<div className="dialog-container" onClick={(e) => e.stopPropagation()}>
<div className={`dialog-wrapper ${className}`} onMouseDown={handleSpaceClicked}>
<div className="dialog-container" onMouseDown={(e) => e.stopPropagation()}>
{children}
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment