1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-07-15 16:04:01 +00:00

fix double click image (#6393)

This commit is contained in:
Michael An 2024-07-22 14:12:22 +08:00 committed by GitHub
parent e94eb3ab66
commit 019e09cb15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,6 +95,7 @@ class DirentGridItem extends React.Component {
handleDoubleClick = (dirent) => {
if (Utils.imageCheck(dirent.name)) {
this.props.showImagePopup(dirent);
this.props.onGridItemClick(null);
} else {
this.props.onItemClick(dirent);
}