Better action description + remove removeeventlistener contextmenu
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ebde73bf10
commit
cefeeb54c0
2 changed files with 2 additions and 7 deletions
|
@ -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,
|
||||
|
|
|
@ -97,11 +97,6 @@ export const ElementsSidebar: React.FC<IElementsSidebarProps> = (props: IElement
|
|||
);
|
||||
|
||||
return () => {
|
||||
elementRef.current?.removeEventListener(
|
||||
'contextmenu',
|
||||
onContextMenu
|
||||
);
|
||||
|
||||
window.removeEventListener(
|
||||
'click',
|
||||
onLeftClick
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue