fix: DatePicker flickering issue when closing panel (#48734)

This commit is contained in:
afc163 2024-05-02 17:20:35 +08:00 committed by GitHub
parent 88f363aa8e
commit 15c7e68149
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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`]:
{