diff --git a/frontend/src/Editor/ConfigHandle.jsx b/frontend/src/Editor/ConfigHandle.jsx index 49b037d99f..0a80a827f1 100644 --- a/frontend/src/Editor/ConfigHandle.jsx +++ b/frontend/src/Editor/ConfigHandle.jsx @@ -3,12 +3,13 @@ import React from 'react'; export const ConfigHandle = function ConfigHandle({ id, component, - configHandleClicked + configHandleClicked, + dragRef }) { - return
+ return
{ e.preventDefault(); configHandleClicked(id, component) }} className="badge badge bg-azure-lt" role="button"> - + {component.name}
diff --git a/frontend/src/Editor/DraggableBox.jsx b/frontend/src/Editor/DraggableBox.jsx index e74b2bcb6e..1fa82a7d0c 100644 --- a/frontend/src/Editor/DraggableBox.jsx +++ b/frontend/src/Editor/DraggableBox.jsx @@ -115,13 +115,7 @@ export const DraggableBox = function DraggableBox({
{inCanvas ? (
- {mode === 'edit' && - configHandleClicked(id, component)} - /> - } + -
+
+ {mode === 'edit' && + configHandleClicked(id, component)} + /> + } { + this.switchSidebarTab(1); this.setState({ selectedComponent: { id, component } }); }