From 74ef6dbd882e07fbbe9de80ae5c36725663d40f7 Mon Sep 17 00:00:00 2001 From: Johnson Cherian Date: Tue, 24 Oct 2023 12:07:47 +0530 Subject: [PATCH] fix: fixed issue that caused hovered components to not getting selected --- frontend/src/Editor/DragContainer.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/Editor/DragContainer.jsx b/frontend/src/Editor/DragContainer.jsx index ddd0cdb012..59b5704644 100644 --- a/frontend/src/Editor/DragContainer.jsx +++ b/frontend/src/Editor/DragContainer.jsx @@ -65,7 +65,7 @@ export default function DragContainer({ const movableTargets = [groupedTargets]; console.log('selectedComponents movableTargets', movableTargets); console.log('selectedComponents hoveredComponent', hoveredComponent); - if (hoveredComponent && !groupedTargets?.length) { + if (hoveredComponent && groupedTargets?.length <= 1) { movableTargets.push('.ele-' + hoveredComponent); } @@ -336,6 +336,7 @@ export default function DragContainer({ elementSnapDirections={{ top: true, left: true, bottom: true, right: true, center: true, middle: true }} snapThreshold={5} elementGuidelines={list.map((l) => ({ element: `.ele-${l.id}` }))} + isDisplaySnapDigit={false} // verticalGuidelines={[50, 150, 250, 450, 550]} // horizontalGuidelines={[0, 100, 200, 400, 500]} />