mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
fix(Slider): forcePopupAlign null when unmounted (#28699)
This commit is contained in:
parent
6cab21dc02
commit
1409db1923
@ -17,7 +17,7 @@ const SliderTooltip = React.forwardRef<unknown, TooltipProps>((props, ref) => {
|
||||
|
||||
function keepAlign() {
|
||||
rafRef.current = raf(() => {
|
||||
innerRef.current.forcePopupAlign();
|
||||
innerRef.current?.forcePopupAlign();
|
||||
rafRef.current = null;
|
||||
keepAlign();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user