fix(tree): Right click event bug (#886)

Co-authored-by: bastarder <jie.qian@blockheaders.com>
This commit is contained in:
bastarder 2020-12-08 21:04:27 +08:00 committed by GitHub
parent 3832028775
commit 3f99b335e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
}