1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 08:28:11 +00:00

repair tree-view interactive bug

This commit is contained in:
shanshuirenjia
2019-04-17 20:54:33 +08:00
parent f4f7db95e6
commit 7161a52d4f
2 changed files with 14 additions and 0 deletions

View File

@@ -139,6 +139,10 @@ class TreeView extends React.Component {
handleContextClick = (event, node) => {
event.preventDefault();
event.stopPropagation();
if (!this.props.isNodeMenuShow) {
return;
}
let x = event.clientX || (event.touches && event.touches[0].pageX);
let y = event.clientY || (event.touches && event.touches[0].pageY);