aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.tsx
diff options
context:
space:
mode:
authorIEatChili <nanunguyen99@gmail.com>2024-06-13 16:28:24 -0400
committerIEatChili <nanunguyen99@gmail.com>2024-06-13 16:28:24 -0400
commit8aee62b8623e23f6478960291857ee47f50f9aaf (patch)
tree6fd3bf2eae5bbd6979a833d0a46d93e21b69a9fe /src/client/views/nodes/ImageBox.tsx
parent05e634842f7d798b8f8c201c7ff7821b32de376f (diff)
feat: more ui updates
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r--src/client/views/nodes/ImageBox.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index e4b3a1b9b..3da878a4f 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -173,6 +173,10 @@ export class ImageBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
Doc.SetNativeHeight(this.dataDoc, Doc.NativeHeight(targetDoc), this.fieldKey);
}
}
+ const layoutDoc = de.complete.docDragData?.draggedDocuments[0];
+ const targetField = Doc.LayoutFieldKey(layoutDoc);
+ const targetDoc = layoutDoc[DocData];
+ console.log(targetDoc[targetField]);
added === false && e.preventDefault();
added !== undefined && e.stopPropagation();
return added;