mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
feat: keep selected tool on canvas reset (#4728)
This commit is contained in:
parent
5007df6522
commit
050bc1ce2b
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ export const actionClearCanvas = register({
|
|||
gridSize: appState.gridSize,
|
||||
showStats: appState.showStats,
|
||||
pasteDialog: appState.pasteDialog,
|
||||
elementType:
|
||||
appState.elementType === "image" ? "selection" : appState.elementType,
|
||||
},
|
||||
commitToHistory: true,
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue