diff --git a/src/Components/Editor/ContainerOperations.ts b/src/Components/Editor/ContainerOperations.ts index 840f8d6..f1736fc 100644 --- a/src/Components/Editor/ContainerOperations.ts +++ b/src/Components/Editor/ContainerOperations.ts @@ -28,7 +28,7 @@ export function SelectContainer( } history.push({ - LastAction: `Select container ${selectedContainer.properties.id}`, + LastAction: `Select ${selectedContainer.properties.id}`, MainContainer: mainContainerClone, SelectedContainer: selectedContainer, SelectedContainerId: selectedContainer.properties.id, @@ -89,7 +89,7 @@ export function DeleteContainer( const SelectedContainerId = SelectedContainer.properties.id; history.push({ - LastAction: `Delete container ${containerId}`, + LastAction: `Delete ${containerId}`, MainContainer: mainContainerClone, SelectedContainer, SelectedContainerId, diff --git a/src/Components/ElementsSidebar/ElementsSidebar.tsx b/src/Components/ElementsSidebar/ElementsSidebar.tsx index e62f3db..fd798ef 100644 --- a/src/Components/ElementsSidebar/ElementsSidebar.tsx +++ b/src/Components/ElementsSidebar/ElementsSidebar.tsx @@ -97,11 +97,6 @@ export const ElementsSidebar: React.FC = (props: IElement ); return () => { - elementRef.current?.removeEventListener( - 'contextmenu', - onContextMenu - ); - window.removeEventListener( 'click', onLeftClick