Skip to content

Commit 36f832f

Browse files
committed
fix(transition): useCSSTransition now correctly forwards refs
1 parent d0701de commit 36f832f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/transition/src/useCSSTransition.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ export default function useCSSTransition<
110110
onExited,
111111
className,
112112
classNames: propClassNames,
113+
ref: propRef,
113114
}: CSSTransitionOptions<E>): CSSTransitionReturnValue<E> {
114115
const { rendered, stage, ref, appearing, dispatch } = useTransition<E>({
116+
ref: propRef,
115117
appear,
116118
repaint: true,
117119
timeout,

0 commit comments

Comments
 (0)