Skip to content

Commit 502c11c

Browse files
authored
fix(dropdown): unexpectedly hidden(#7246) (#7254)
1 parent 2cdb69f commit 502c11c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: components/vc-trigger/Trigger.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ export default defineComponent({
215215
) {
216216
return;
217217
}
218-
this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay);
218+
if (this.isMouseLeaveToHide()) {
219+
this.delaySetPopupVisible(false, this.$props.mouseLeaveDelay);
220+
}
219221
const { vcTriggerContext = {} } = this;
220222
if (vcTriggerContext.onPopupMouseleave) {
221223
vcTriggerContext.onPopupMouseleave(e);

0 commit comments

Comments
 (0)