Skip to content

Commit ad06a9e

Browse files
committed
fix: dropdown contextmenu, close #5259
1 parent 2ec21c9 commit ad06a9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/vc-trigger/Trigger.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,10 @@ export default defineComponent({
376376
!contains(popupNode, target) &&
377377
!this.hasPopupMouseDown
378378
) {
379-
this.close();
379+
// https://github.com/vuejs/core/issues/4462
380+
// vue 动画bug导致 https://github.com/vueComponent/ant-design-vue/issues/5259,
381+
// 改成延时解决
382+
this.delaySetPopupVisible(false, 0.1);
380383
}
381384
},
382385
getPopupDomNode() {

0 commit comments

Comments
 (0)