From 520f8fcfe8064b1b2dd5df97371c822e61674798 Mon Sep 17 00:00:00 2001 From: Arpit Date: Wed, 11 Oct 2023 13:41:10 +0530 Subject: [PATCH] [appdef-2] subcontainer dnd height outbound fix (#7767) * fixes: listview children can be dragged outside its outbound limit * cleanup --- frontend/src/Editor/SubContainer.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/Editor/SubContainer.jsx b/frontend/src/Editor/SubContainer.jsx index b4bf4ee261..4d787b99dd 100644 --- a/frontend/src/Editor/SubContainer.jsx +++ b/frontend/src/Editor/SubContainer.jsx @@ -295,6 +295,7 @@ export const SubContainer = ({ } }); + //!Todo: need to check: this never gets called as draggingState is always false useEffect(() => { setIsDragging(draggingState); }, [draggingState]); @@ -383,6 +384,7 @@ export const SubContainer = ({ enableReleasedVersionPopupState(); return; } + console.log('---arpit---onDragStop---'); const canvasWidth = getContainerCanvasWidth(); const nodeBounds = direction.node.getBoundingClientRect(); @@ -610,6 +612,7 @@ export const SubContainer = ({ onComponentHover={onComponentHover} hoveredComponent={hoveredComponent} parentId={parentComponent?.name} + parent={parent} sideBarDebugger={sideBarDebugger} exposedVariables={exposedVariables ?? {}} childComponents={childComponents[key]}