Skip to content

Commit

Permalink
chore(slider): optimize tooltip align (ant-design#29308)
Browse files Browse the repository at this point in the history
  • Loading branch information
kerm1it authored and mumiao committed Feb 20, 2021
1 parent 03cfdb9 commit c9d5cd9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/slider/SliderTooltip.tsx
Original file line number Diff line number Diff line change
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 c9d5cd9

Please sign in to comment.