mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 14:16:26 +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={{}}>
|
<SchemaComponentOptions components={{}} scope={{}}>
|
||||||
<Card
|
<Card
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
|
const targetElement = e.target as Element; // 将事件目标转换为Element类型
|
||||||
|
const currentTargetElement = e.currentTarget as Element;
|
||||||
|
if (currentTargetElement.contains(targetElement)) {
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
|
e.stopPropagation();
|
||||||
|
} else {
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
bordered={false}
|
bordered={false}
|
||||||
hoverable
|
hoverable
|
||||||
|
Loading…
Reference in New Issue
Block a user