Commit 0c8523bc authored by FuryBean's avatar FuryBean Committed by 杨奕

Tree: stopPropagation and preventDefault for node-contextmenu if bound (#10123)

parent 5797325c
......@@ -165,6 +165,10 @@
},
handleContextMenu(event) {
if (this.tree._events['node-contextmenu'] && this.tree._events['node-contextmenu'].length > 0) {
event.stopPropagation();
event.preventDefault();
}
this.tree.$emit('node-contextmenu', event, this.node.data, this.node, this);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment