Skip to content

Commit

Permalink
feat: support data-* (#259)
Browse files Browse the repository at this point in the history
Co-authored-by: yu.duan <[email protected]>
  • Loading branch information
yizhiyuyou and yu.duan authored Jul 19, 2021
1 parent cb6f8f0 commit 370cb6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useRef, useEffect } from 'react';
import classNames from 'classnames';
import KeyCode from 'rc-util/lib/KeyCode';
import contains from 'rc-util/lib/Dom/contains';
import pickAttrs from 'rc-util/lib/pickAttrs';
import type ScollLocker from 'rc-util/lib/Dom/scrollLocker';
import type { IDialogPropTypes } from '../IDialogPropTypes';
import Mask from './Mask';
Expand Down Expand Up @@ -162,7 +163,7 @@ export default function Dialog(props: IDialogChildProps) {

// ========================= Render =========================
return (
<div className={`${prefixCls}-root`}>
<div className={`${prefixCls}-root`} {...pickAttrs(props, { data: true })}>
<Mask
prefixCls={prefixCls}
visible={mask && visible}
Expand Down

1 comment on commit 370cb6b

@vercel
Copy link

@vercel vercel bot commented on 370cb6b Jul 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.