mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 20:27:44 +08:00
fix(tree): Right click event bug (#886)
Co-authored-by: bastarder <jie.qian@blockheaders.com>
This commit is contained in:
parent
3832028775
commit
3f99b335e5
@ -182,7 +182,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
const handleContextMenu = (event: Event) => {
|
||||
if (tree.instance.vnode.props['onNode-contextmenu']) {
|
||||
if (tree.instance.vnode.props['onNodeContextmenu']) {
|
||||
event.stopPropagation()
|
||||
event.preventDefault()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user