Skip to content

Commit 1a4a1fb

Browse files
authored
feat: CSSMotion bind ref, avoid rc-motion call findDOMNode (#279)
1 parent c518261 commit 1a4a1fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Dialog/Mask.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ export default function Mask(props: MaskProps) {
2020
motionName={motionName}
2121
leavedClassName={`${prefixCls}-mask-hidden`}
2222
>
23-
{({ className: motionClassName, style: motionStyle }) => (
23+
{({ className: motionClassName, style: motionStyle }, ref) => (
2424
<div
25+
ref={ref}
2526
style={{ ...motionStyle, ...style }}
2627
className={classNames(`${prefixCls}-mask`, motionClassName)}
2728
{...maskProps}

0 commit comments

Comments
 (0)