diff --git a/src/ui/widgets/Slideshow/slideshow.tsx b/src/ui/widgets/Slideshow/slideshow.tsx index 8448515..c15ddd8 100644 --- a/src/ui/widgets/Slideshow/slideshow.tsx +++ b/src/ui/widgets/Slideshow/slideshow.tsx @@ -31,10 +31,15 @@ export const SwitchableWidget = (props: { index: number; children: [ReactElement]; transition: { readonly [key: string]: string }; + nodeRef: React.Ref; }): JSX.Element => { + // react-transition-group internally uses findDOMNode which + // is deprecated. Fix by passing nodeRef which points to the + // transitioning child. return ( (null); return (
- + {props.children as [ReactElement]}