fix: hide sidebar when custom
tool active (#5179)
This commit is contained in:
parent
4ee48d2729
commit
2537b225ac
@ -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,
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user