Skip to content

Commit

Permalink
fix(Overlay): Fix backdropProps issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 11, 2019
1 parent fe67f32 commit 9bca037
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/overlay/index.tsx
Expand Up @@ -140,12 +140,13 @@ export default class Overlay extends React.Component<IOverlayProps, IOverlayStat
}
public render() {
const { prefixCls, className, style, isOpen, maskClosable, usePortal, children, unmountOnExit,
timeout, transitionName, hasBackdrop, portalProps, backdropProps = {}, dialogProps, onClose, ...otherProps } = this.props;
timeout, transitionName, hasBackdrop, portalProps, backdropProps = {}, dialogProps = {}, onClose, ...otherProps } = this.props;
const { onOpening, onOpened, onClosing } = this.props;
const decoratedChild =
typeof children === 'object' ? (
cloneElement(children, {
...dialogProps,
style: { ...children.props.style, ...dialogProps.style},
className: classnames(children.props.className, `${prefixCls}-content`),
tabIndex: 0,
})
Expand Down

0 comments on commit 9bca037

Please sign in to comment.