1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

[dir view] fixed 'selectedDirentList' state after moving dirents (#5654)

This commit is contained in:
llj
2023-09-20 08:07:51 +08:00
committed by GitHub
parent 4be3e665e1
commit f42421903a

View File

@@ -1545,9 +1545,14 @@ class LibContentView extends React.Component {
});
// Recalculate the state of the selection
this.recaculateSelectedStateAfterDirentDeleted(name, direntList);
//this.recaculateSelectedStateAfterDirentDeleted(name, direntList);
this.setState({direntList: direntList});
this.setState({
direntList: direntList,
selectedDirentList: [],
isDirentSelected: false,
isAllDirentSelected: false,
});
this.updateReadmeMarkdown(direntList);
};