diff --git a/package/component/src/component/dropdown/index.vue b/package/component/src/component/dropdown/index.vue index 82736857..c2fe09fb 100644 --- a/package/component/src/component/dropdown/index.vue +++ b/package/component/src/component/dropdown/index.vue @@ -471,7 +471,6 @@ const handleScroll = useThrottleFn(() => { }, 10); const handleClick = (e: MouseEvent) => { - e.stopPropagation(); if (props.disabled || (openState.value && !props.clickToClose)) { return; } diff --git a/package/component/src/component/popper/index.vue b/package/component/src/component/popper/index.vue index c8056e68..c94e08fe 100644 --- a/package/component/src/component/popper/index.vue +++ b/package/component/src/component/popper/index.vue @@ -144,8 +144,9 @@ const handlerTriggerClick = function () { } }; -const handleTriggerContextMenu = function () { +const handleTriggerContextMenu = function (e: MouseEvent) { if (!triggerMethods.value.includes("contextMenu")) return; + e.preventDefault(); if (innerVisible.value) { doHidden(); } else {