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

update active item interactive (#3268)

This commit is contained in:
杨顺强
2019-04-13 13:35:33 +08:00
committed by Daniel Pan
parent 6c3061e1bf
commit 29b4208659
4 changed files with 15 additions and 8 deletions

View File

@@ -135,6 +135,7 @@ class DirentListItem extends React.Component {
// on '<tr>'
onDirentClick = (e) => {
// '<td>' is clicked
e.stopPropagation();
if (e.target.tagName == 'TD') {
this.props.onDirentClick(this.props.dirent);
}
@@ -493,7 +494,7 @@ class DirentListItem extends React.Component {
}
</Fragment> :
<Fragment>
{this.state.isOperationShow &&
{(this.state.isOperationShow || (activeDirent && dirent.name === activeDirent.name)) &&
<div className="operations">
<ul className="operation-group">
<li className="operation-group-item">