1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 17:33:18 +00:00

repair bug (#3272)

This commit is contained in:
杨顺强
2019-04-13 16:56:06 +08:00
committed by Daniel Pan
parent fe36faa44c
commit 19a2fc7355
5 changed files with 25 additions and 10 deletions

View File

@@ -68,6 +68,10 @@ class DirentListItem extends React.Component {
this.setState({
highlight: false,
isOperationShow: false,
}, () => {
if (nextProps.activeDirent && nextProps.activeDirent.name === nextProps.dirent.name) {
this.setState({isOperationShow: true});
}
});
}
}
@@ -494,7 +498,7 @@ class DirentListItem extends React.Component {
}
</Fragment> :
<Fragment>
{(this.state.isOperationShow || (activeDirent && dirent.name === activeDirent.name)) &&
{this.state.isOperationShow &&
<div className="operations">
<ul className="operation-group">
<li className="operation-group-item">