mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fix: disable child widget selection when parents are selected
This commit is contained in:
parent
63df214b5c
commit
d2bc60cdc0
1 changed files with 7 additions and 3 deletions
|
|
@ -276,8 +276,6 @@ export default function DragContainer({
|
|||
: '.widget-target'
|
||||
);
|
||||
|
||||
console.log('selectedComponents.length--- ', selectedComponents.length);
|
||||
|
||||
return (
|
||||
<div className="root">
|
||||
<div className="container-fluid rm-container p-0">
|
||||
|
|
@ -693,7 +691,13 @@ export default function DragContainer({
|
|||
mouseTest: true,
|
||||
dimensionViewable: selectedComponents.length > 2,
|
||||
}}
|
||||
target={groupedTargets1.length ? groupedTargets1 : `.target-${i.parent}`}
|
||||
target={
|
||||
groupedTargets.length
|
||||
? '.empty-widget'
|
||||
: groupedTargets1.length
|
||||
? groupedTargets1
|
||||
: `.target-${i.parent}`
|
||||
}
|
||||
draggable={true}
|
||||
resizable={{
|
||||
edge: ['e', 'w', 'n', 's'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue