Skip to content

Commit 88d6b5a

Browse files
allow mouseDown event for lowcoder-comp-excalidraw
1 parent 238163d commit 88d6b5a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/packages/lowcoder/src/layout/gridItem.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,12 @@ export function GridItem(props: GridItemProps) {
141141
onDrag={onDrag}
142142
onDragEnd={onDragEnd}
143143
onMouseDown={(e) => {
144-
// allow mouseDown event on kanban comp to make drag/drop work
144+
// allow mouseDown event on lowcoder-comp-kanban to make drag/drop work
145145
if((props.compType as string).includes('lowcoder-comp-kanban')) return;
146146

147+
// allow mouseDown event on lowcoder-comp-excalidraw to make drag/drop work
148+
if((props.compType as string).includes('lowcoder-comp-excalidraw')) return;
149+
147150
e.stopPropagation();
148151
const event = new MouseEvent("mousedown");
149152
document.dispatchEvent(event);

0 commit comments

Comments
 (0)