From 5e85ce47a057b90530b9470492d9b8cc45e4ba2b Mon Sep 17 00:00:00 2001 From: Tom Xu Date: Sat, 24 Oct 2020 23:52:59 +0800 Subject: [PATCH] chore: improve useCombinedRefs (#27352) --- components/_util/hooks/useCombinedRefs.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/_util/hooks/useCombinedRefs.tsx b/components/_util/hooks/useCombinedRefs.tsx index d1ea07de2e..559832471c 100644 --- a/components/_util/hooks/useCombinedRefs.tsx +++ b/components/_util/hooks/useCombinedRefs.tsx @@ -4,7 +4,7 @@ import { fillRef } from '../ref'; function useCombinedRefs( ...refs: Array | ((instance: T) => void) | null> ) { - const targetRef = React.useRef(); + const targetRef = React.useRef(); React.useEffect(() => { refs.forEach(ref => {