mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fix: fixed issue that caused hovered components to not getting selected
This commit is contained in:
parent
8b3f2a4c68
commit
74ef6dbd88
1 changed files with 2 additions and 1 deletions
|
|
@ -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]}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in a new issue