From 502c11cc4ca67e8aa66d28a242761ecc53facc30 Mon Sep 17 00:00:00 2001 From: somethingfornothing <91053541+mmmmr@users.noreply.github.com> Date: Fri, 12 Jan 2024 10:42:36 +0800 Subject: [PATCH] fix(dropdown): unexpectedly hidden(#7246) (#7254) --- components/vc-trigger/Trigger.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/vc-trigger/Trigger.tsx b/components/vc-trigger/Trigger.tsx index 03597c81d..3a65609bf 100644 --- a/components/vc-trigger/Trigger.tsx +++ b/components/vc-trigger/Trigger.tsx @@ -215,7 +215,9 @@ export default defineComponent({ ) { return; } - this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay); + if (this.isMouseLeaveToHide()) { + this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay); + } const { vcTriggerContext = {} } = this; if (vcTriggerContext.onPopupMouseleave) { vcTriggerContext.onPopupMouseleave(e);