From 970c32dded5f61efc3e02a9146fbba0c9a5dfce7 Mon Sep 17 00:00:00 2001 From: Kermit Date: Wed, 10 Feb 2021 14:33:19 +0800 Subject: [PATCH] chore(slider): optimize tooltip align --- components/slider/SliderTooltip.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/slider/SliderTooltip.tsx b/components/slider/SliderTooltip.tsx index 4a8436e29afd..965b520e5f6c 100644 --- a/components/slider/SliderTooltip.tsx +++ b/components/slider/SliderTooltip.tsx @@ -19,7 +19,6 @@ const SliderTooltip = React.forwardRef((props, ref) => { rafRef.current = raf(() => { innerRef.current?.forcePopupAlign(); rafRef.current = null; - keepAlign(); }); } @@ -31,7 +30,7 @@ const SliderTooltip = React.forwardRef((props, ref) => { } return cancelKeepAlign; - }, [visible]); + }, [visible, props.title]); return ; });