We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfb6787 commit 7bc8315Copy full SHA for 7bc8315
1 file changed
packages/components/src/recycle-tree/RecycleTree.tsx
@@ -866,7 +866,7 @@ export class RecycleTree extends React.Component<IRecycleTreeProps> {
866
private renderItem = ({ index, style }): JSX.Element => {
867
const { children, overflow = 'ellipsis', supportDynamicHeights } = this.props;
868
const node = this.getItemAtIndex(index) as IFilterNodeRendererProps;
869
- const wrapRef = useRef<HTMLDivElement>();
+ const wrapRef = useRef<HTMLDivElement | null>(null);
870
if (!node) {
871
return <></>;
872
}
0 commit comments