File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { useRef, useEffect } from 'react';
33import classNames from 'classnames' ;
44import KeyCode from 'rc-util/lib/KeyCode' ;
55import contains from 'rc-util/lib/Dom/contains' ;
6+ import pickAttrs from 'rc-util/lib/pickAttrs' ;
67import type ScollLocker from 'rc-util/lib/Dom/scrollLocker' ;
78import type { IDialogPropTypes } from '../IDialogPropTypes' ;
89import Mask from './Mask' ;
@@ -162,7 +163,7 @@ export default function Dialog(props: IDialogChildProps) {
162163
163164 // ========================= Render =========================
164165 return (
165- < div className = { `${ prefixCls } -root` } >
166+ < div className = { `${ prefixCls } -root` } { ... pickAttrs ( props , { data : true } ) } >
166167 < Mask
167168 prefixCls = { prefixCls }
168169 visible = { mask && visible }
You can’t perform that action at this time.
0 commit comments