Skip to content

Commit b183a7e

Browse files
committed
fix(dropdown): unexpectedly hidden(vueComponent#7246)
1 parent 8696e01 commit b183a7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)