1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-27 11:01:14 +00:00

reset dirent selection state after switch mode

This commit is contained in:
zhouwenxuan 2025-04-18 17:41:03 +08:00
parent d7c3b459d2
commit 8cb5ecf83c

View File

@ -1098,7 +1098,7 @@ class LibContentView extends React.Component {
this.loadSidePanel(this.state.path);
}
this.isNeedUpdateHistoryState = false;
this.setState({ currentMode: mode });
this.setState({ currentMode: mode, isDirentSelected: false });
this.showDir(path);
};