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:
ranyunlong 2024-10-16 02:23:55 +08:00 committed by GitHub
parent 18416bc8c3
commit bbc94edb5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ============================