diff --git a/src/Dialog/Content.tsx b/src/Dialog/Content.tsx index b4979edf..2c45f4ba 100644 --- a/src/Dialog/Content.tsx +++ b/src/Dialog/Content.tsx @@ -11,7 +11,8 @@ export interface ContentProps extends IDialogChildProps { motionName: string; ariaId: string; onVisibleChanged: (visible: boolean) => void; - onClick: React.MouseEventHandler; + onMouseDown: React.MouseEventHandler; + onMouseUp: React.MouseEventHandler; } export interface ContentRef { @@ -42,7 +43,8 @@ const Content = React.forwardRef((props, ref) => { ariaId, onClose, onVisibleChanged, - onClick, + onMouseDown, + onMouseUp, mousePosition, } = props; @@ -144,7 +146,8 @@ const Content = React.forwardRef((props, ref) => { ref={motionRef} style={{ ...motionStyle, ...style, ...contentStyle }} className={classNames(prefixCls, className, motionClassName)} - onClick={onClick} + onMouseDown={onMouseDown} + onMouseUp={onMouseUp} >