fix(dropdown): unexpectedly hidden(#7246) (#7254)

pull/7288/head^2
somethingfornothing 2024-01-12 10:42:36 +08:00 committed by GitHub
parent 2cdb69f706
commit 502c11cc4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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);