diff --git a/frontend/src/Editor/DragContainer.jsx b/frontend/src/Editor/DragContainer.jsx
index 36906c5c28..b9af7f6e81 100644
--- a/frontend/src/Editor/DragContainer.jsx
+++ b/frontend/src/Editor/DragContainer.jsx
@@ -9,39 +9,52 @@ import { flushSync } from 'react-dom';
import { restrictedWidgetsObj } from './WidgetManager/restrictedWidgetsConfig';
import { useGridStoreActions, useDragTarget, useNoOfGrid, useGridStore } from '@/_stores/gridStore';
+const configHandleForMultiple = (id) => {
+ return (
+
{
+ if (useGridStore.getState().isGroundHandleHoverd) {
+ useGridStore.getState().actions.setIsGroundHandleHoverd(false);
+ }
+ }}
+ onMouseDownCapture={() => {
+ if (!useGridStore.getState().isGroundHandleHoverd) {
+ useGridStore.getState().actions.setIsGroundHandleHoverd(true);
+ }
+ }}
+ >
+
+
+

+
components
+
+
+
+ );
+};
+
const DimensionViewable = {
name: 'dimensionViewable',
props: [],
events: [],
render() {
- return (
- {
- if (useGridStore.getState().isGroundHandleHoverd) {
- useGridStore.getState().actions.setIsGroundHandleHoverd(false);
- }
- }}
- onMouseDownCapture={() => {
- if (!useGridStore.getState().isGroundHandleHoverd) {
- useGridStore.getState().actions.setIsGroundHandleHoverd(true);
- }
- }}
- >
-
-
-

-
components
-
-
-
- );
+ return configHandleForMultiple('multiple-components-config-handle');
+ },
+};
+
+const DimensionViewableForSub = {
+ name: 'dimensionViewableForSub',
+ props: [],
+ events: [],
+ render() {
+ return configHandleForMultiple('multiple-components-config-handle-sub');
},
};
@@ -754,14 +767,18 @@ export default function DragContainer({
return (
(childMoveableRefs.current[i.parent] = el)}
- ables={[MouseCustomAble, DimensionViewable]}
+ ables={[MouseCustomAble, DimensionViewableForSub]}
props={{
mouseTest: selectedComponents.length < 2,
- dimensionViewable: selectedComponents.length > 2,
+ dimensionViewableForSub: selectedComponents.length > 1,
}}
target={
// groupedTargets.length