mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
fix css transform
Due to the inclusion of transformations in elements, canvas elements in child elements cannot be updated and rendered in a timely manner, mainly due to issues caused by transformations in CSS. Therefore, it needs to be deleted Signed-off-by: ranyunlong <549510622@qq.com>
This commit is contained in:
parent
18416bc8c3
commit
bbc94edb5f
@ -146,6 +146,13 @@ const Drawer: React.FC<DrawerProps> & {
|
||||
motionEnter: true,
|
||||
motionLeave: true,
|
||||
motionDeadline: 500,
|
||||
onAppearEnd: (e) => {
|
||||
// Due to the inclusion of transformations in elements, canvas elements in child elements cannot be updated and rendered in a timely manner, mainly due to issues caused by transformations in CSS. Therefore, it needs to be deleted
|
||||
e.style.transition = 'none';
|
||||
},
|
||||
onLeavePrepare: (e) => {
|
||||
e.style.transition = 'all 0.3s';
|
||||
},
|
||||
});
|
||||
|
||||
// ============================ Refs ============================
|
||||
|
Loading…
Reference in New Issue
Block a user