Skip to content

Commit

Permalink
fix: dropdown contextmenu, close #5259
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Feb 17, 2022
1 parent 2ec21c9 commit ad06a9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/vc-trigger/Trigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,10 @@ export default defineComponent({
!contains(popupNode, target) &&
!this.hasPopupMouseDown
) {
this.close();
// https://github.com/vuejs/core/issues/4462
// vue 动画bug导致 https://github.com/vueComponent/ant-design-vue/issues/5259,
// 改成延时解决
this.delaySetPopupVisible(false, 0.1);
}
},
getPopupDomNode() {
Expand Down

0 comments on commit ad06a9e

Please sign in to comment.