Skip to content

Commit

Permalink
fix: DatePicker flickering issue when closing panel (#48734)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed May 2, 2024
1 parent 88f363a commit 15c7e68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/date-picker/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@ const genPickerStyle: GenerateStyle<PickerToken> = (token) => {
animationName: slideUpIn,
},

// https://github.com/ant-design/ant-design/issues/48727
[`&${antCls}-slide-up-leave ${componentCls}-panel-container`]: {
pointerEvents: 'none',
},

[`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-topLeft,
&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-topRight`]:
{
Expand Down

0 comments on commit 15c7e68

Please sign in to comment.