Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/lib/tree/Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const Tree = React.memo(
const filteredNodes = React.useRef([]);
const dragState = React.useRef(null);
const filterChanged = React.useRef(false);
const [, forceRender] = React.useState(false);

const filteredValue = props.onFilterValueChange ? props.filterValue : filterValueState;
const isFiltering = props.filter && filteredValue;
Expand Down Expand Up @@ -351,6 +352,7 @@ export const Tree = React.memo(
});

currentFilterExpandedKeys.current = {};
forceRender((x) => !x);
Comment thread
melloware marked this conversation as resolved.
filterChanged.current = false;
};

Expand Down
Loading