mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Fixed bug on hovering the child elements
This commit is contained in:
parent
03d92815d2
commit
482a10b268
1 changed files with 4 additions and 4 deletions
|
|
@ -52,8 +52,8 @@ const MouseCustomAble = {
|
|||
props: {},
|
||||
events: {},
|
||||
mouseEnter(e) {
|
||||
console.log('MouseCustomAble ENTER', e);
|
||||
const controlBoxes = document.getElementsByClassName('.moveable-control-box');
|
||||
console.log('here--- ', e);
|
||||
const controlBoxes = document.getElementsByClassName('moveable-control-box');
|
||||
for (const element of controlBoxes) {
|
||||
element.classList.remove('moveable-control-box-d-block');
|
||||
}
|
||||
|
|
@ -313,7 +313,7 @@ export default function DragContainer({
|
|||
ref={moveableRef}
|
||||
ables={[MouseCustomAble, DimensionViewable]}
|
||||
props={{
|
||||
mouseTest: true,
|
||||
mouseTest: selectedComponents.length < 2,
|
||||
dimensionViewable: selectedComponents.length > 1,
|
||||
}}
|
||||
flushSync={flushSync}
|
||||
|
|
@ -687,7 +687,7 @@ export default function DragContainer({
|
|||
ref={(el) => (childMoveableRefs.current[i.parent] = el)}
|
||||
ables={[MouseCustomAble, DimensionViewable]}
|
||||
props={{
|
||||
mouseTest: true,
|
||||
mouseTest: selectedComponents.length < 2,
|
||||
dimensionViewable: selectedComponents.length > 2,
|
||||
}}
|
||||
target={
|
||||
|
|
|
|||
Loading…
Reference in a new issue