优化contextmenu指令

This commit is contained in:
fan
2021-02-09 16:52:51 +08:00
parent 5d53ee6b41
commit 763935791a
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export default {
binding.modifiers.click ? "click" : "contextmenu",
e => {
if (isEmpty(binding.value) || !Array.isArray(binding.value)) return;
e.stopPropagation();
if (binding.modifiers.click == "click") e.stopPropagation();
e.preventDefault();
LemonPopover.methods.closeAll();
let component;