Virtual whiteboard for sketching hand-drawn like diagrams
fix: hide sidebar when `custom` tool active (#5179)
David Luzar2537b225ac53
diff --git a/src/element/showSelectedShapeActions.ts b/src/element/showSelectedShapeActions.tsindex 4c0d5b0afc..14a7694e5b 100644--- a/src/element/showSelectedShapeActions.ts+++ b/src/element/showSelectedShapeActions.ts@@ -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,);