Fix more detached DOM leaks (#10806)
This commit is contained in:
parent
84786ad342
commit
bf641d1823
4 changed files with 9 additions and 4 deletions
|
@ -54,6 +54,8 @@ export default class AutoHideScrollbar<T extends keyof JSX.IntrinsicElements> ex
|
|||
if (this.containerRef.current && this.props.onScroll) {
|
||||
this.containerRef.current.removeEventListener("scroll", this.props.onScroll);
|
||||
}
|
||||
|
||||
this.props.wrappedRef?.(null);
|
||||
}
|
||||
|
||||
public render(): React.ReactNode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue