1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

optimize menu show&hide (#5481)

This commit is contained in:
杨顺强
2023-05-18 17:46:59 +08:00
committed by GitHub
parent 33c80ff085
commit ce949d0b53
5 changed files with 18 additions and 4 deletions

View File

@@ -80,6 +80,7 @@ class DirentGridView extends React.Component{
}
onGridItemClick = (dirent) => {
hideMenu();
this.setState({activeDirent: dirent});
this.props.onGridItemClick(dirent);
}
@@ -367,6 +368,7 @@ class DirentGridView extends React.Component{
}
gridContainerClick = () => {
hideMenu();
if (!this.props.isDirentDetailShow) {
this.onGridItemClick(null);
}