mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
fix: hide sidebar when custom
tool active (#5179)
This commit is contained in:
parent
4ee48d2729
commit
2537b225ac
1 changed files with 4 additions and 3 deletions
|
@ -7,9 +7,10 @@ export const showSelectedShapeActions = (
|
||||||
elements: readonly NonDeletedExcalidrawElement[],
|
elements: readonly NonDeletedExcalidrawElement[],
|
||||||
) =>
|
) =>
|
||||||
Boolean(
|
Boolean(
|
||||||
!appState.viewModeEnabled &&
|
(!appState.viewModeEnabled &&
|
||||||
|
appState.activeTool.type !== "custom" &&
|
||||||
(appState.editingElement ||
|
(appState.editingElement ||
|
||||||
getSelectedElements(elements, appState).length ||
|
|
||||||
(appState.activeTool.type !== "selection" &&
|
(appState.activeTool.type !== "selection" &&
|
||||||
appState.activeTool.type !== "eraser")),
|
appState.activeTool.type !== "eraser"))) ||
|
||||||
|
getSelectedElements(elements, appState).length,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue