Skip to content

Commit

Permalink
should use container check
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Sep 24, 2020
1 parent b65f17a commit c802206
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Portal.tsx
Expand Up @@ -24,6 +24,7 @@ const Portal = forwardRef<PortalRef, PortalProps>((props, ref) => {
const initRef = useRef(false);
if (!initRef.current && canUseDom()) {
containerRef.current = getContainer();
initRef.current = true;
}

// Not know who use this. Just keep it here
Expand Down

0 comments on commit c802206

Please sign in to comment.