Skip to content

Commit

Permalink
chore(slider): optimize tooltip align
Browse files Browse the repository at this point in the history
  • Loading branch information
kerm1it committed Feb 10, 2021
1 parent 1d43753 commit 970c32d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/slider/SliderTooltip.tsx
Expand Up @@ -19,7 +19,6 @@ const SliderTooltip = React.forwardRef<unknown, TooltipProps>((props, ref) => {
rafRef.current = raf(() => {
innerRef.current?.forcePopupAlign();
rafRef.current = null;
keepAlign();
});
}

Expand All @@ -31,7 +30,7 @@ const SliderTooltip = React.forwardRef<unknown, TooltipProps>((props, ref) => {
}

return cancelKeepAlign;
}, [visible]);
}, [visible, props.title]);

return <Tooltip ref={composeRef(innerRef, ref)} {...props} />;
});
Expand Down

0 comments on commit 970c32d

Please sign in to comment.