From 4adc116386de3be18b3525467d9752762ba038c7 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Fri, 29 Mar 2024 22:46:06 +0800 Subject: [PATCH] fix: kanban card modal display abnormal (#3863) --- .../@nocobase/plugin-kanban/src/client/Kanban.Card.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx index 23274e4a8..2bd9e8e3e 100644 --- a/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx +++ b/packages/plugins/@nocobase/plugin-kanban/src/client/Kanban.Card.tsx @@ -24,7 +24,14 @@ export const KanbanCard: any = observer( { - 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