mirror of
https://github.com/haiwen/seahub.git
synced 2025-07-16 00:06:11 +00:00
fix double click image (#6393)
This commit is contained in:
parent
e94eb3ab66
commit
019e09cb15
@ -95,6 +95,7 @@ class DirentGridItem extends React.Component {
|
|||||||
handleDoubleClick = (dirent) => {
|
handleDoubleClick = (dirent) => {
|
||||||
if (Utils.imageCheck(dirent.name)) {
|
if (Utils.imageCheck(dirent.name)) {
|
||||||
this.props.showImagePopup(dirent);
|
this.props.showImagePopup(dirent);
|
||||||
|
this.props.onGridItemClick(null);
|
||||||
} else {
|
} else {
|
||||||
this.props.onItemClick(dirent);
|
this.props.onItemClick(dirent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user