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:
@@ -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">
|
||||
|
Reference in New Issue
Block a user