Skip to content

Commit

Permalink
fix(transition): useCSSTransition now correctly forwards refs
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Aug 1, 2020
1 parent d0701de commit 36f832f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/transition/src/useCSSTransition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ export default function useCSSTransition<
onExited,
className,
classNames: propClassNames,
ref: propRef,
}: CSSTransitionOptions<E>): CSSTransitionReturnValue<E> {
const { rendered, stage, ref, appearing, dispatch } = useTransition<E>({
ref: propRef,
appear,
repaint: true,
timeout,
Expand Down

0 comments on commit 36f832f

Please sign in to comment.