From 757ca0bc63eb4167d3c1eff223f672ff59724eec Mon Sep 17 00:00:00 2001 From: wanghaoo Date: Wed, 6 Mar 2019 11:04:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Tree.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Tree.js b/src/Tree.js index 5f439ce..35a8cb2 100644 --- a/src/Tree.js +++ b/src/Tree.js @@ -21,7 +21,7 @@ function noop() {} class Tree extends React.Component { constructor(props) { super(props); - ['onKeyDown', 'onCheck',"onUlFocus","_focusDom","onUlMouseDown","onUlMouseEnter","onUlMouseLeave"].forEach((m) => { + ['onKeyDown', 'onCheck',"onUlFocus","_focusDom","onUlMouseEnter","onUlMouseLeave"].forEach((m) => { this[m] = this[m].bind(this); }); this.contextmenuKeys = []; @@ -574,13 +574,7 @@ onExpand(treeNode,keyType) { } - onUlMouseDown(e){ - // const targetDom = e.target; - // console.log('mouseDown************',e.target); - // if(this.refs.tree !== targetDom){ - // e.preventDefault(); - // } - } + onUlMouseEnter(e){ this.isIn = true;