Kermit
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
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} />; |
|
|
|
}); |
|
|
|