Browse Source

chore(slider): optimize tooltip align (#29308)

pull/29307/head
Kermit 4 years ago
committed by GitHub
parent
commit
a93767562a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/slider/SliderTooltip.tsx

3
components/slider/SliderTooltip.tsx

@ -19,7 +19,6 @@ const SliderTooltip = React.forwardRef<unknown, TooltipProps>((props, ref) => {
rafRef.current = raf(() => {
innerRef.current?.forcePopupAlign();
rafRef.current = null;
keepAlign();
});
}
@ -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} />;
});

Loading…
Cancel
Save