mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
[appdef-2] subcontainer dnd height outbound fix (#7767)
* fixes: listview children can be dragged outside its outbound limit * cleanup
This commit is contained in:
parent
61df66b108
commit
520f8fcfe8
1 changed files with 3 additions and 0 deletions
|
|
@ -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]}
|
||||
|
|
|
|||
Loading…
Reference in a new issue