|
@@ -7,9 +7,10 @@ export const showSelectedShapeActions = (
|
|
|
elements: readonly NonDeletedExcalidrawElement[],
|
|
|
) =>
|
|
|
Boolean(
|
|
|
- !appState.viewModeEnabled &&
|
|
|
+ (!appState.viewModeEnabled &&
|
|
|
+ appState.activeTool.type !== "custom" &&
|
|
|
(appState.editingElement ||
|
|
|
- getSelectedElements(elements, appState).length ||
|
|
|
(appState.activeTool.type !== "selection" &&
|
|
|
- appState.activeTool.type !== "eraser")),
|
|
|
+ appState.activeTool.type !== "eraser"))) ||
|
|
|
+ getSelectedElements(elements, appState).length,
|
|
|
);
|