fix: kanban card modal display abnormal (#3863)

This commit is contained in:
katherinehhh 2024-03-29 22:46:06 +08:00 committed by GitHub
parent fec3662dc9
commit 4adc116386
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,14 @@ export const KanbanCard: any = observer(
<SchemaComponentOptions components={{}} scope={{}}>
<Card
onClick={(e) => {
setVisible(true);
const targetElement = e.target as Element; // 将事件目标转换为Element类型
const currentTargetElement = e.currentTarget as Element;
if (currentTargetElement.contains(targetElement)) {
setVisible(true);
e.stopPropagation();
} else {
e.stopPropagation();
}
}}
bordered={false}
hoverable