mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 11:56:29 +00:00
fix: kanban card modal display abnormal (#3863)
This commit is contained in:
parent
fec3662dc9
commit
4adc116386
@ -24,7 +24,14 @@ export const KanbanCard: any = observer(
|
||||
<SchemaComponentOptions components={{}} scope={{}}>
|
||||
<Card
|
||||
onClick={(e) => {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user